{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/1519","labels_url":"https://api.github.com/repos/sbt/sbt/issues/1519/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/1519/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/1519/events","html_url":"https://github.com/sbt/sbt/issues/1519","id":39882543,"number":1519,"title":"javac is not respecting the JAVA_HOME","user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt/labels/Community","name":"Community","color":"eb6420"},{"url":"https://api.github.com/repos/sbt/sbt/labels/Enhancement","name":"Enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-08-09T10:10:41Z","updated_at":"2015-05-22T11:05:43Z","closed_at":null,"body":"related to\r\n\r\n* https://github.com/sbt/sbt/issues/510\r\n* https://github.com/paulp/sbt-extras/issues/83\r\n\r\nWhen sbt is started with a specific version of JAVA_HOME, the `javac` is still picked up by PATH rather than `JAVA_HOME/bin/javac`. This is both unexpected and can lead to bad binaries being built (e.g. java 7 classfiles produced in a java 6 project).\r\n\r\nGlobal solutions as proposed in #510 are non useful because the need to change the java version is the exception case, not the general rule (and this sort of information cannot appear in project SCM).\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/104621918","html_url":"https://github.com/sbt/sbt/issues/1519#issuecomment-104621918","issue_url":"https://api.github.com/repos/sbt/sbt/issues/1519","id":104621918,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T11:05:43Z","updated_at":"2015-05-22T11:05:43Z","body":"now all we need is a way to set the java-home on a per-project basis (like paulp's script allows)"}}