{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-maven/issues/21","repository_url":"https://api.github.com/repos/ensime/ensime-maven","labels_url":"https://api.github.com/repos/ensime/ensime-maven/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-maven/issues/21/comments","events_url":"https://api.github.com/repos/ensime/ensime-maven/issues/21/events","html_url":"https://github.com/ensime/ensime-maven/issues/21","id":128486024,"number":21,"title":"ConfigGenerator.getJavaHome() cannot work on windows","user":{"login":"neXtack","id":13027141,"avatar_url":"https://avatars.githubusercontent.com/u/13027141?v=3","gravatar_id":"","url":"https://api.github.com/users/neXtack","html_url":"https://github.com/neXtack","followers_url":"https://api.github.com/users/neXtack/followers","following_url":"https://api.github.com/users/neXtack/following{/other_user}","gists_url":"https://api.github.com/users/neXtack/gists{/gist_id}","starred_url":"https://api.github.com/users/neXtack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neXtack/subscriptions","organizations_url":"https://api.github.com/users/neXtack/orgs","repos_url":"https://api.github.com/users/neXtack/repos","events_url":"https://api.github.com/users/neXtack/events{/privacy}","received_events_url":"https://api.github.com/users/neXtack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-25T08:25:09Z","updated_at":"2016-02-08T17:14:33Z","closed_at":null,"body":"On Windows, the \"javac\" dose not exists, but \"javac.exe\" does. \r\nSo `org.ensime.maven.plugins.ensime.ConfigGenerator.getJavaHome()` always throws  FileNotFoundException.\r\nI touch a file named `javac`,It's OK."},"comment":{"url":"https://api.github.com/repos/ensime/ensime-maven/issues/comments/181481082","html_url":"https://github.com/ensime/ensime-maven/issues/21#issuecomment-181481082","issue_url":"https://api.github.com/repos/ensime/ensime-maven/issues/21","id":181481082,"user":{"login":"tanzoniteblack","id":1134611,"avatar_url":"https://avatars.githubusercontent.com/u/1134611?v=3","gravatar_id":"","url":"https://api.github.com/users/tanzoniteblack","html_url":"https://github.com/tanzoniteblack","followers_url":"https://api.github.com/users/tanzoniteblack/followers","following_url":"https://api.github.com/users/tanzoniteblack/following{/other_user}","gists_url":"https://api.github.com/users/tanzoniteblack/gists{/gist_id}","starred_url":"https://api.github.com/users/tanzoniteblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanzoniteblack/subscriptions","organizations_url":"https://api.github.com/users/tanzoniteblack/orgs","repos_url":"https://api.github.com/users/tanzoniteblack/repos","events_url":"https://api.github.com/users/tanzoniteblack/events{/privacy}","received_events_url":"https://api.github.com/users/tanzoniteblack/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T17:14:33Z","updated_at":"2016-02-08T17:14:33Z","body":"@fommil does that code work on Windows? The code we have here is the same logic, but looking for the executable `javac` instead of `tools.jar`. And while `tools.jar` would be more universal than `javac` (which is `javac.exe` on windows), the fact you're looking for `/lib/tools.jar` screams an issue on Windows, which uses `\\` instead of `/` for path separation."}}