2

Is anyone using Jruby in emacs? I have setup emacs and it works perfectly for ruby code using jruby. However notice that java code isn't executing from within emacs. I have installed mode-compile and all my code except for java in jruby.

Been searching options for Java and of course found JDEE, noticed in a previous java specific thread however concerns with JDEE What is the best way to do Java development in Emacs? age/not developed/works only for Java5 etc.

I found another emacs how-to http://zarb.org/~gc/html/java-emacs.html noted the date it was posted was 2005 and the author advised to use Eclipse for Java.

Has anybody got suggestion on using Jruby in emacs?

2
  • Can I update the question to be; If I don't use mode-compile to evaluate my jruby scripts what good alternative to evaluate scripts in emacs? Commented May 2, 2011 at 22:40
  • Sure, just click 'edit' up there ^ Commented May 2, 2011 at 22:43

1 Answer 1

1

Malabar-mode is the only real alternative to JDEE(especially for Maven based projects). I'm not sure how it will fit into your JRuby development toolchain, though. Another more general solution would plain old java-mode + CEDET + emacs code browser.

Sign up to request clarification or add additional context in comments.

4 Comments

Well in emacs 23.3 cedet and java-mode are standard and I already have ECB installed too. Must just be a configuration issue I think. It outputts C:/cygwin/bin\ruby.exe -w c:/MyRuby/newtest.rb I need to change the ruby to jruby. (NB I don't have matz Ruby installed) just jruby
I know my jruby environment variable is set okay as Geany with jruby -c "%f" runs the same script perfectly.
Looking at compiler-mode's source I noticed there is a ruby-command variable, with default value "ruby". Try something like (setq ruby-command "jruby.exe") and I think that will do the trick.
Awsome for me neeeded to drop the exe bit and it works. So working for me (setq ruby-command "jruby").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.