Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5.6
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Launcher
-
Labels:None
-
Environment:Solaris
-
Patch Submitted:Yes
-
Number of attachments :
Description
I created a soft link to jruby in my home directory. When running "jruby -v", I got the following error:
expr: syntax error
Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
I tracked it down to line 32 of bin/jruby, and compared it to the same file in version 1.3. Looks like this:
if expr "$link" : '/' > /dev/null; then
Should be:
if expr "$link" : '^/' > /dev/null; then
Making the change works for me. This only seems to affect it when I softlink jruby - giving it the full path does not show this error.
Issue Links
- relates to
-
JRUBY-3695
jruby.sh causes "unportable BRE" warning on CentOS (but works fine)
-
I noticed this is still an issue in 1.6RC2 - any thoughts on when it will be resolved?