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?

Community
  • 1
  • 1
sayth
  • 6,696
  • 12
  • 58
  • 100

1 Answers1

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.

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
  • 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 – sayth May 02 '11 at 11:36
  • I know my jruby environment variable is set okay as Geany with jruby -c "%f" runs the same script perfectly. – sayth May 02 '11 at 11:54
  • 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. – Bozhidar Batsov May 02 '11 at 12:47
  • Awsome for me neeeded to drop the exe bit and it works. So working for me (setq ruby-command "jruby"). – sayth May 03 '11 at 11:44