Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6RC1
-
Fix Version/s: JRuby 1.6RC2
-
Component/s: Java Integration
-
Labels:None
-
Environment:windows XP, French locales
Description
In a packaged jar, on windows,
require 'ffi' (not tested other jruby-standard libraries yet)
raises a LoadError if the path to the jar contains spaces or special characters.
broken trace:
D:\Documents and Settings\DiCioccioL>java -jar "D:\Documents and Settings\DiCioc
cioL\Desktop\ldc-bug.jar"
org/jruby/RubyKernel.java:1041:in `require': no such file to load -- ffi (LoadEr
ror)
from /bootstrap.rb:2:in `(root)'
from org/jruby/RubyKernel.java:1041:in `require'
from /bootstrap.rb:1:in `(root)'
Exception in thread "main" org.jruby.embed.EvalFailedException: (LoadError) no s
uch file to load -- ffi
at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java
:127)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:12
22)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.ja
va:1215)
at Launcher.main(Launcher.java:7)
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load
-- ffi
OK trace:
D:\Documents and Settings\DiCioccioL>java -jar D:\ldc-bug.jar ok
See "code" at:
https://github.com/lucasdicioccio/windows-jar-issue-with-spaces
And sample jar at:
http://cmon.lip6.fr/~dicioccio/ldc-bug.jar
Issue Links
- is related to
-
JRUBY-5281
jruby-complete jar not working from directory with spaces
-
Reformat up the description.