{"action":"opened","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3197","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3197/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3197/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3197/events","html_url":"https://github.com/jruby/jruby/issues/3197","id":98089437,"number":3197,"title":"require_relative fails for relative paths within jars on Windows","user":{"login":"trejkaz","id":43236,"avatar_url":"https://avatars.githubusercontent.com/u/43236?v=3","gravatar_id":"","url":"https://api.github.com/users/trejkaz","html_url":"https://github.com/trejkaz","followers_url":"https://api.github.com/users/trejkaz/followers","following_url":"https://api.github.com/users/trejkaz/following{/other_user}","gists_url":"https://api.github.com/users/trejkaz/gists{/gist_id}","starred_url":"https://api.github.com/users/trejkaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trejkaz/subscriptions","organizations_url":"https://api.github.com/users/trejkaz/orgs","repos_url":"https://api.github.com/users/trejkaz/repos","events_url":"https://api.github.com/users/trejkaz/events{/privacy}","received_events_url":"https://api.github.com/users/trejkaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T05:33:14Z","updated_at":"2015-07-30T05:33:14Z","closed_at":null,"body":"We use gems in a jar to simplify distribution of the gems used for test runs.\r\n\r\nWhen requiring rspec, rspec internally uses `require_relative`, which then fails. I notice there is a weird mix of the two different slash directions, which probably explains why I'm not seeing the same problem on OSX:\r\n\r\n\tErrno::ENOENT: No such file or directory - C:\\hudson\\workspace\\trunk-functional-tests\\os\\windows\\dependencies\\jruby\\jruby-testing-gems.jar!\\gems\\rspec-support-3.3.0\\lib\\rspec\\support.rb\r\n\t                        realpath at org/jruby/RubyFile.java:805\r\n\t                require_relative at uri:classloader:/jruby/kernel/kernel.rb:21\r\n\t                block in Support at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-support-3.3.0/lib/rspec/support.rb:28\r\n\t                            call at org/jruby/RubyProc.java:308\r\n\t  block in require_rspec_support at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-support-3.3.0/lib/rspec/support.rb:19\r\n\t                <module:Support> at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-support-3.3.0/lib/rspec/support.rb:29\r\n\t                  <module:RSpec> at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-support-3.3.0/lib/rspec/support.rb:2\r\n\t                           <top> at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-support-3.3.0/lib/rspec/support.rb:1\r\n\t                         require at org/jruby/RubyKernel.java:940\r\n\t                          (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1\r\n\t                           <top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54\r\n\t                         require at org/jruby/RubyKernel.java:940\r\n\t                          (root) at c:/hudson/workspace/trunk-functional-tests/os/windows/dependencies/jruby/jruby-testing-gems.jar!/gems/rspec-core-3.3.2/lib/rspec/core.rb:5\r\n\t                           <top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1\r\n\t                         require at org/jruby/RubyKernel.java:940\r\n\t                         require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54\r\n\t                           <top> at c:\\hudson\\workspace\\trunk-functional-tests\\os\\windows/functional-tests/run-rspec.rb:8\r\n"}}