Mode-compile emacs and calling java

Playing with my emacs setup for jruby. Using mode-compile.el I can
compile and test my ruby files and the output is displayed in another
buffer. The only issue I can’t seem to get working is jruby files as
it errors on the java calls.

Is anyone else using mode-compile? If yes did you get it working and
how or if not what is a good working solution.

This is an example error output.

-- mode: compilation; default-directory: “c:/MyRuby/” --
Compilation started at Sun May 01 22:24:12

C:/cygwin/bin\ruby.exe -w c:/MyRuby/newtest.rb
c:/MyRuby/newtest.rb:24: warning: void value expression
c:/MyRuby/newtest.rb:2:in `require’: no such file to load – java
(LoadError)
from c:/MyRuby/newtest.rb:2

Compilation exited abnormally with code 1 at Sun May 01 22:24:12

Sayth

On Sun, May 1, 2011 at 7:34 AM, Sayth R. [email protected]
wrote:

Compilation exited abnormally with code 1 at Sun May 01 22:24:12
I’m not terribly familiar with mode-compile, but it looks like you’re
trying to compile with a non-JRuby ruby implementation. Make sure
that you have jruby in your PATH, and then set (via M-x
customize-variable) ruby-command to be jruby. Once you’ve done that,
M-x mode-compile should use jruby to do the compilation.

On Mon, May 2, 2011 at 12:52 AM, Anthony J. [email protected]
wrote:

http://xircles.codehaus.org/manage_email

After doing customize-variable I went to do ruby-command but the only
possile completions were

Possible completions are:
ruby-comment-column ruby-deep-arglist
ruby-deep-indent-paren ruby-deep-indent-paren-style
ruby-encoding-map ruby-indent-level
ruby-indent-tabs-mode ruby-insert-encoding-magic-comment
ruby-use-encoding-map

Sayth

On Tue, May 3, 2011 at 9:05 AM, Anthony J. [email protected]
wrote:

ruby-use-encoding-map
http://xircles.codehaus.org/manage_email

Yes just needed to add this to my .emacs and it works.

(setq ruby-command “jruby.exe”)

On Tue, May 3, 2011 at 9:46 PM, Sayth R. [email protected]
wrote:

ruby-indent-tabs-mode ruby-insert-encoding-magic-comment

http://xircles.codehaus.org/manage_email

Yes just needed to add this to my .emacs and it works.

(setq ruby-command “jruby.exe”)

Oops its (setq ruby-command “jruby”)

On Mon, May 2, 2011 at 6:26 AM, Sayth R. [email protected]
wrote:

Are you certain you have mode-compile loaded when you tried that?
Either it wasn’t loaded, or you’ve got a different version. I’ve
apparently got version 2.29 downloaded from
http://perso.tls.cena.fr/boubaker/Emacs/.