Forum: JRuby jruby 1.7.0RC1 jruby.bash dependencies on gnu utils

Posted by Dany Cayer (dany)
on 2012-09-26 21:58
(Received via mailing list)
Not sure it qualify as a bug, but the changes to jruby.bash to resolve 
symbolic links did not play well on a 'vanilla' Solaris 10 install (not 
OpenSolaris) as the basename don't seem to be of the 'GNU' vintage so


$ basename -- /usr/bin/jruby
--
and not
$ /opt/csw/bin/gbasename -- /usr/bin/jruby
jruby

Also readlink did not seam to be present at all, but opencsw does have 
/opt/csw/bin/greadlink.

I can workaround the issue, but it's just that things worked 
'out-of-the-box' for me before. Now I have external dependencies to GNU 
utils or have to keep a version of the older script around.

I just thought it might be worth some paper trail, as the first launch 
did not look promising...

$ jruby --version
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.jruby.Main. Program will exit.

Cheers,
Dany
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.