JRuby

JRuby command line scripts do not work with spaces in the path

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.5
  • Fix Version/s: JRuby 1.2
  • Component/s: Miscellaneous
  • Labels:
    None
  • Environment:
    OS X 10.5.5 under the standard terminal running bash
  • Number of attachments :
    1

Description

$ cd ~/Downloads/test\ spaces/jruby-1.1.5/bin/

$ export PATH=`pwd`:$PATH

$ which jruby
/Users/adam/Downloads/test spaces/jruby-1.1.5/bin/jruby

$ jruby
Exception in thread "main" java.lang.NoClassDefFoundError:
spaces/jruby-1/1/5/lib/native/darwin

jgem, jirb, etc, give the same error.

I also have the same problem if I don't put jruby on the PATH and instead just got to the jruby bin folder and run ./jruby

Activity

Hide
Chris Williams added a comment -

Patch to fix launching using absolute path when jruby path has spaces. Patched against 1.1.6 tag.

Show
Chris Williams added a comment - Patch to fix launching using absolute path when jruby path has spaces. Patched against 1.1.6 tag.
Hide
Charles Oliver Nutter added a comment -

Well, that's a nice simple fix. I've applied it in r8526. Thank you!

Show
Charles Oliver Nutter added a comment - Well, that's a nice simple fix. I've applied it in r8526. Thank you!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: