{"action":"created","issue":{"url":"https://api.github.com/repos/jkutner/mjruby/issues/1","labels_url":"https://api.github.com/repos/jkutner/mjruby/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jkutner/mjruby/issues/1/comments","events_url":"https://api.github.com/repos/jkutner/mjruby/issues/1/events","html_url":"https://github.com/jkutner/mjruby/issues/1","id":100180911,"number":1,"title":"Detect native JAVA_HOME","user":{"login":"jkutner","id":1589,"avatar_url":"https://avatars.githubusercontent.com/u/1589?v=3","gravatar_id":"","url":"https://api.github.com/users/jkutner","html_url":"https://github.com/jkutner","followers_url":"https://api.github.com/users/jkutner/followers","following_url":"https://api.github.com/users/jkutner/following{/other_user}","gists_url":"https://api.github.com/users/jkutner/gists{/gist_id}","starred_url":"https://api.github.com/users/jkutner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkutner/subscriptions","organizations_url":"https://api.github.com/users/jkutner/orgs","repos_url":"https://api.github.com/users/jkutner/repos","events_url":"https://api.github.com/users/jkutner/events{/privacy}","received_events_url":"https://api.github.com/users/jkutner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T22:11:33Z","updated_at":"2015-08-11T12:37:32Z","closed_at":null,"body":"When JAVA_HOME is not set, and the `java` that is on the `PATH` is in a location such as `/usr/bin`, it is not possible to easily detect the location of the JAVA_HOME directory. \r\n\r\nDifferent platforms use different locations, such as:\r\n\r\n*  `/Library/Java/JavaVirtualMachines/$VERSION/Contents/Home` on Mac\r\n* `/usr/lib/jvm` on Linux\r\n* `C:\\Program Files\\Java` on Windows\r\n\r\nIt is unclear if searching these directories is the correct approach. Doing so adds significant time to the start-up of the command.\r\n\r\nAs an alternative, if `java` is on the PATH, we could launch an out-of-process JVM."},"comment":{"url":"https://api.github.com/repos/jkutner/mjruby/issues/comments/129858320","html_url":"https://github.com/jkutner/mjruby/issues/1#issuecomment-129858320","issue_url":"https://api.github.com/repos/jkutner/mjruby/issues/1","id":129858320,"user":{"login":"jkutner","id":1589,"avatar_url":"https://avatars.githubusercontent.com/u/1589?v=3","gravatar_id":"","url":"https://api.github.com/users/jkutner","html_url":"https://github.com/jkutner","followers_url":"https://api.github.com/users/jkutner/followers","following_url":"https://api.github.com/users/jkutner/following{/other_user}","gists_url":"https://api.github.com/users/jkutner/gists{/gist_id}","starred_url":"https://api.github.com/users/jkutner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkutner/subscriptions","organizations_url":"https://api.github.com/users/jkutner/orgs","repos_url":"https://api.github.com/users/jkutner/repos","events_url":"https://api.github.com/users/jkutner/events{/privacy}","received_events_url":"https://api.github.com/users/jkutner/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T12:37:32Z","updated_at":"2015-08-11T12:37:32Z","body":"Another example on linux mint: `/usr/lib/jvm/default-java/jre/lib/amd64/jamvm/libjvm.so`"}}