{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/4000","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/4000/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/4000/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/4000/events","html_url":"https://github.com/jruby/jruby/issues/4000","id":164432026,"number":4000,"title":"JRubyFX application not working when running from jar (works in 1.7, doesn't work in 9k)","user":{"login":"oreoshake","id":448516,"avatar_url":"https://avatars.githubusercontent.com/u/448516?v=3","gravatar_id":"","url":"https://api.github.com/users/oreoshake","html_url":"https://github.com/oreoshake","followers_url":"https://api.github.com/users/oreoshake/followers","following_url":"https://api.github.com/users/oreoshake/following{/other_user}","gists_url":"https://api.github.com/users/oreoshake/gists{/gist_id}","starred_url":"https://api.github.com/users/oreoshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oreoshake/subscriptions","organizations_url":"https://api.github.com/users/oreoshake/orgs","repos_url":"https://api.github.com/users/oreoshake/repos","events_url":"https://api.github.com/users/oreoshake/events{/privacy}","received_events_url":"https://api.github.com/users/oreoshake/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/core","name":"core","color":"02e10c"},{"url":"https://api.github.com/repos/jruby/jruby/labels/java%20integration","name":"java integration","color":"000000"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%201.7.x","name":"JRuby 1.7.x","color":"eb6420"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%209000","name":"JRuby 9000","color":"bfe5bf"},{"url":"https://api.github.com/repos/jruby/jruby/labels/regression","name":"regression","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/54","html_url":"https://github.com/jruby/jruby/milestones/JRuby%209.1.3.0","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/54/labels","id":1777472,"number":54,"title":"JRuby 9.1.3.0","description":"","creator":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"open_issues":64,"closed_issues":55,"state":"open","created_at":"2016-05-19T19:37:59Z","updated_at":"2016-08-11T21:41:08Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2016-07-07T23:46:20Z","updated_at":"2016-08-11T22:31:28Z","closed_at":"2016-08-11T21:41:08Z","body":"### Environment\r\n\r\nProvide at least:\r\n* JRuby version (`jruby -v`) and command line (flags, JRUBY_OPTS, etc)\r\n  * `jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]`\r\n* Operating system and platform (e.g. `uname -a`)\r\n  * `Darwin Neils-MacBook-Pro-4.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64`\r\n\r\nOther relevant info you may wish to add:\r\n* Installed or activated gems\r\n  * https://github.com/oreoshake/jrubyfx-9k-jar-problems/blob/master/Gemfile.lock\r\n* Application/framework version (e.g. Rails, Sinatra)\r\n  * JrubyFX\r\n* Environment variables\r\n\r\n### Expected Behavior\r\n\r\nThe test application at https://github.com/oreoshake/jrubyfx-9k-jar-problems should build and run just fine. `$ bundle && rake && java -jar BrakemanPro.jar` should launch the app.\r\n\r\n### Actual Behavior\r\n\r\nbuilds and runs just fine under jruby 1.7.21, but fails under 9k:\r\n\r\n```\r\n$ bundle && rake && java -jar BrakemanPro.jar\r\nErrno::ENOENT: No such file or directory - classpath:/Users/neilmatatall/workspace/jrubyfail/brakeman-pro/jar-bootstrap.rb\r\n          realpath at org/jruby/RubyFile.java:810\r\n  require_relative at uri:classloader:/jruby/kernel/kernel.rb:11\r\n             <top> at classpath:jar-bootstrap.rb:1\r\n```\r\n\r\nBut if I unzip the jar and run the file directly, everything is happy:\r\n\r\n```\r\n$ mkdir tmp && cp BrakemanPro.jar tmp/ && cd tmp && unzip BrakemanPro.jar \r\n... accept the file overwrites ... \r\n$ ruby jar-bootstrap.rb\r\n```\r\n\r\nThere's also a flag for compiling code and using that in the jar, but I ran into errors that I can  no longer reproduce so it's disabled by default.\r\n\r\nSince we're not using much of JRubyFX to build the jar, I assumed the problem lies with some difference between jruby 1.7 and 9k instead of a jrubyfx problem but I could of course be wrong.\r\n\r\nEDIT:\r\n\r\nI lied, this could also be a jrubyfx thing since I do call the jarify command:\r\n```ruby\r\nsystem 'bundle exec jrubyfx-jarify . --main bin/brakeman_pro_jar.rb BrakemanPro.jar --include-jars --verbose --name \"BrakemanPro\"'\r\n```\r\n\r\nI will file an issue there too."},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/239313410","html_url":"https://github.com/jruby/jruby/issues/4000#issuecomment-239313410","issue_url":"https://api.github.com/repos/jruby/jruby/issues/4000","id":239313410,"user":{"login":"oreoshake","id":448516,"avatar_url":"https://avatars.githubusercontent.com/u/448516?v=3","gravatar_id":"","url":"https://api.github.com/users/oreoshake","html_url":"https://github.com/oreoshake","followers_url":"https://api.github.com/users/oreoshake/followers","following_url":"https://api.github.com/users/oreoshake/following{/other_user}","gists_url":"https://api.github.com/users/oreoshake/gists{/gist_id}","starred_url":"https://api.github.com/users/oreoshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oreoshake/subscriptions","organizations_url":"https://api.github.com/users/oreoshake/orgs","repos_url":"https://api.github.com/users/oreoshake/repos","events_url":"https://api.github.com/users/oreoshake/events{/privacy}","received_events_url":"https://api.github.com/users/oreoshake/received_events","type":"User","site_admin":true},"created_at":"2016-08-11T22:31:28Z","updated_at":"2016-08-11T22:31:28Z","body":"Thanks @headius. We're past this error and on to another `require`-related bug. I'll make sure it repros on my test repo and create a new issue with ⬆️  debug info."}}
{"actor":{"display_login":"oreoshake"}}