Jruby 1.7.0RC1 jruby.bash dependencies on gnu utils

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