I was trying to install and run jruby on my mac(Jruby 1.1.2). After downloading and unzipping the installer I tried to run jruby.
But all I was getting was an exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Googling did not yield anything useful.
So I started debugging and I found that the CLASSPATH had not been specified correctly in the
jruby file.
All I was getting was an empty string for the CLASSPATH which is why it was not able to find the jruby.jar(which contains the org.jruby.Main class)
To fix this I added
CLASSPATH=./../lib/jruby.jar
before CLASSPATH was being used in the jruby file.
Looks like CLASSPATH has not been defined in the jruby.bat file too. So jruby won't work on Windows either.
Hope this tip helps someone.
Subscribe to:
Posts (Atom)
Welcome
- Agile (1)
- ant (1)
- automation (2)
- batch files (1)
- commandline (1)
- continuous integration (1)
- cruisecontrol (1)
- cruisecontrol java monitor Big visible charts agile ramaze ruby (1)
- env (1)
- errors (1)
- github pages blog jekyll accordion.js accordion prototype1.6 javascript opensource (1)
- java (1)
- java5 (1)
- jruby Mac OSX install Windows CLASSPATH (1)
- Junit (1)
- junit4 (1)
- launchy (1)
- maven build tools (1)
- mocking (1)
- PATH (1)
- process (1)
- procexp (1)
- rails (1)
- ruby (1)
- save (1)
- selenium (2)
- sysinternals (1)
- testing (1)
- testing "random numbers" ruby (1)
- thoughtworks (1)
- top (1)
- UCD (1)
- User Centered Design (1)
- webrick (1)