-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails.root set to "uri:classloader:/" for new Rails app with JRuby 9.0.0.0 #3233
Comments
Reproduced on OS X 10.10.4 and Centos 5.11. |
Same behaviour using Java 8 or Java 7. |
needs rvm to reproduce it !!! |
the only workaround I know is to use "rbenv" instead of "rvm" |
@mkristian do you know what rbenv does differently? |
@donv rbenv installs the bin stubs in JRUBY_HOME/bin (which is actually the default from dist install as well) - not sure where rvm installs them. but JRUBY_HOME/bin is the first location it looks for bin files. then comes the classpath where things fail for rails. |
A simple workaround is to specify the relative path to the binary:
|
Verified that it works with jruby-head from RVM:
|
For a new Rails app running the Rails runner prefixed with
jruby -S
makeRails.root
get the valueuri:classloader:/
. Starting without thejruby -S
prefix works as expected.The effect is the same with JRuby installed via RVM or by downloading and unpacking the JRuby 9.0.0.0 tarball.
The text was updated successfully, but these errors were encountered: