require_relative
does not work inside a jar on Windows
#4188
Labels
Milestone
require_relative
does not work inside a jar on Windows
#4188
This is a followup to #4000, the fix for which I believe was incomplete: d4cbfd2 I think the issue below is due to the path starting with
classpath:c:/
instead ofclasspath:/
Environment
JRuby 9.1.5.0 complete jar.
Windows 8.1.
Expected Behavior
Load files in jar using
require_relative
.Actual Behavior
Steps to reproduce
Use https://github.com/presidentbeef/jruby-realpath-error
I happened to have a jruby-complete jar in
~/.jruby-jar/
so I use that below to build the jar on Linux. I'm not sure the Linux part is necessary, but that's where I started.Copy jar to a Windows machine and run it:
The text was updated successfully, but these errors were encountered: