require 'ffi' breaks in windows jar when the path to the jar contains
spaces/special chars
------------------------------------------------------------------------------------------
Key: JRUBY-5345
URL: http://jira.codehaus.org/browse/JRUBY-5345
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.6RC1
Environment: windows XP, French locales
Reporter: lucas dicioccio
Priority: Critical
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email