{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/18685","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18685/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18685/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18685/events","html_url":"https://github.com/elastic/elasticsearch/pull/18685","id":157965470,"number":18685,"title":"Retrieve JAVA_HOME from symlink","user":{"login":"StefanScherer","id":207759,"avatar_url":"https://avatars.githubusercontent.com/u/207759?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanScherer","html_url":"https://github.com/StefanScherer","followers_url":"https://api.github.com/users/StefanScherer/followers","following_url":"https://api.github.com/users/StefanScherer/following{/other_user}","gists_url":"https://api.github.com/users/StefanScherer/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanScherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanScherer/subscriptions","organizations_url":"https://api.github.com/users/StefanScherer/orgs","repos_url":"https://api.github.com/users/StefanScherer/repos","events_url":"https://api.github.com/users/StefanScherer/events{/privacy}","received_events_url":"https://api.github.com/users/StefanScherer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Packaging","name":":Packaging","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-06-01T17:39:42Z","updated_at":"2016-06-02T19:43:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/18685","html_url":"https://github.com/elastic/elasticsearch/pull/18685","diff_url":"https://github.com/elastic/elasticsearch/pull/18685.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/18685.patch"},"body":"I've enhanced the Windows batch scripts to retrieve the JAVA_HOME environment from the symlink installed by Oracle's Java. See also the PR elastic/logstash#4913 in logstash repo.\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/223400515","html_url":"https://github.com/elastic/elasticsearch/pull/18685#issuecomment-223400515","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18685","id":223400515,"user":{"login":"StefanScherer","id":207759,"avatar_url":"https://avatars.githubusercontent.com/u/207759?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanScherer","html_url":"https://github.com/StefanScherer","followers_url":"https://api.github.com/users/StefanScherer/followers","following_url":"https://api.github.com/users/StefanScherer/following{/other_user}","gists_url":"https://api.github.com/users/StefanScherer/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanScherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanScherer/subscriptions","organizations_url":"https://api.github.com/users/StefanScherer/orgs","repos_url":"https://api.github.com/users/StefanScherer/repos","events_url":"https://api.github.com/users/StefanScherer/events{/privacy}","received_events_url":"https://api.github.com/users/StefanScherer/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T19:43:39Z","updated_at":"2016-06-02T19:43:39Z","body":"This is how it looks like after Java 8 installation.\r\n\r\n<img width=\"1176\" alt=\"bildschirmfoto 2016-06-02 um 21 42 00\" src=\"https://cloud.githubusercontent.com/assets/207759/15758439/e7895424-290a-11e6-942f-ae2af3bd82f8.png\">\r\n\r\n```\r\nMicrosoft Windows [Version 10.0.10586]\r\n(c) 2015 Microsoft Corporation. All rights reserved.\r\n\r\nC:\\Users\\vagrant>where java\r\nC:\\ProgramData\\Oracle\\Java\\javapath\\java.exe\r\n\r\nC:\\Users\\vagrant>set java\r\nEnvironment variable java not defined\r\n\r\nC:\\Users\\vagrant>java -version\r\njava version \"1.8.0_91\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_91-b15)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.91-b15, mixed mode)\r\n\r\nC:\\Users\\vagrant>dir C:\\ProgramData\\Oracle\\Java\\javapath\r\n Volume in drive C is Windows 10\r\n Volume Serial Number is 9C9F-63C7\r\n\r\n Directory of C:\\ProgramData\\Oracle\\Java\\javapath\r\n\r\n06/02/2016  09:39 PM    <DIR>          .\r\n06/02/2016  09:39 PM    <DIR>          ..\r\n06/02/2016  09:39 PM    <SYMLINK>      java.exe [C:\\Program Files\\Java\\jre1.8.0_91\\bin\\java.exe]\r\n06/02/2016  09:39 PM    <SYMLINK>      javaw.exe [C:\\Program Files\\Java\\jre1.8.0_91\\bin\\javaw.exe]\r\n06/02/2016  09:39 PM    <SYMLINK>      javaws.exe [C:\\Program Files\\Java\\jre1.8.0_91\\bin\\javaws.exe]\r\n               3 File(s)              0 bytes\r\n               2 Dir(s)  49,184,186,368 bytes free\r\n\r\nC:\\Users\\vagrant>\r\n```\r\n\r\nSo `java.exe` is in PATH, but you have to read the symlink to know where JAVA_HOME should be.\r\nThat's why this PR was born."}}
{"actor":{"display_login":"StefanScherer"}}