Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
`require_relative` does not work inside a jar on Windows #4188
JRuby 126.96.36.199 complete jar.
Load files in jar using
Steps to reproduce
I happened to have a jruby-complete jar in
Copy jar to a Windows machine and run it:
require_relative "./config/application" VMain.launch
C:\Users\usr\Desktop>java -jar app.jar LoadError: no such file to load -- classpath:C:/config/application require at org/jruby/RubyKernel.java:961 require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ ext/kernel_require.rb:55 <main> at classpath:/jar-bootstrap.rb:1
-is there a workaround if so?