Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Getting JRuby working in Ubuntu with Ruby Development Tools

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thats ok, i just deleted the batch file that it was trying to run and now it works fine.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic