Skip to content
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

"java -jar jruby-complete.jar -S gem install yard" creates uri:classloader: directory when GEM_HOME is not set #2488

Closed
mkristian opened this issue Jan 20, 2015 · 3 comments

Comments

@mkristian
Copy link
Member

java -jar maven/jruby-complete/target/jruby-complete-9.0.0.0.pre1.jar -S gem install yard
Fetching: yard-0.8.7.6.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared directory.

but also

$ ls -1
uri:classloader:
@mkristian mkristian added this to the JRuby 9.0.0.0.rc1 milestone Jun 19, 2015
@mkristian
Copy link
Member Author

this is already fixed

@snluu
Copy link

snluu commented Jul 25, 2015

Hi! I'm still seeing this issue in the 9000 release:


C:\Users\abc\Desktop\jrubydemo>java -jar .\jruby-complete-9.0.0.0.jar --version
jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 +jit [Windows 8.1-amd64]

C:\Users\abc\Desktop\jrubydemo>java -jar .\jruby-complete-9.0.0.0.jar -S gem install bundler
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared directory.

C:\Users\abc\Desktop\jrubydemo>java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

@mkristian
Copy link
Member Author

well, not sure it says there is no write permissions into the classloader. the problem is that default GEM_HOME is inside the jruby-complete.jar so bundler can NOT install gems there.

if the whole thing does create some strange file like "uri:classloader:/" in your current directory then this bug is not fixed.

but to use bundler or even the gem command with jruby-complete.jar you need to set GEM_HOME to install gems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants