File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Getting JRuby working in Ubuntu with Ruby Development Tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Getting JRuby working in Ubuntu with Ruby Development Tools" Watch "Getting JRuby working in Ubuntu with Ruby Development Tools" New topic
Author

Getting JRuby working in Ubuntu with Ruby Development Tools

John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
Hi,

I have just installed JRuby on my ubuntu box and seemed to be having some problems, I did the following

- Extracted the folder to my /usr/bin directory
- Exported a JRUBY_HOME variable
- Added $JRUBY_HOME/bin to the path

Now running jruby nefile.rb from the command line works fine but I have just installed Ruby Development Tools and am getting the following error when I try to run a class,

/usr/bin/jruby-1.0.0RC2/bin/jrubyw.bat: 1: @echo: not found
/usr/bin/jruby-1.0.0RC2/bin/jrubyw.bat: 3: rem: not found
/usr/bin/jruby-1.0.0RC2/bin/jrubyw.bat: 6: call: not found
/usr/bin/jruby-1.0.0RC2/bin/jrubyw.bat: 8: %_STARTJAVA%: not found
/usr/bin/jruby-1.0.0RC2/bin/jrubyw.bat: 11: call: not found

Thinking this was just a problem with my setup of the Ruby Development Tools I tried running the jrubyw.bat from the command line but get the same problem, has anyone come across this before? if so does anyone know how to fix it so I can start building Jruby apps in eclipse.

Thank you in advance,

John
[ May 28, 2007: Message edited by: John Bartlett ]
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
You are trying to execute the Windows start script on Lunix.

In that bin directory there should be a bash shell script named 'jruby', no file extension.

Run that instead.

Guy
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
ah ok, how do you stop the eclipse ruby development tools using it then? because all I did to declare the Installed Interpreter was to set it to the root jruby directory and it does the rest for you.

Do I just delete the .bat files from the bin directory so that it cant find and access them?

Thank you,

John
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
John - Apologies, I have been off line for a few days.

Did you get this figured out?

I do not have JRuby installed on Ubuntu, but I think you just do:

Preferences ->
Ruby ->
Installed Interpreters

and add the path to the shell script.

You may also have to select this in your project's properties.

Let me know how it goes.

Guy
John Bartlett
Ranch Hand

Joined: Jan 25, 2006
Posts: 116
hey thats ok, i just deleted the batch file that it was trying to run and now it works fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting JRuby working in Ubuntu with Ruby Development Tools