{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035","repository_url":"https://api.github.com/repos/Homebrew/homebrew","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035/events","html_url":"https://github.com/Homebrew/homebrew/issues/50035","id":140273766,"number":50035,"title":"\"Java is required to install this formula\" but Java is installed","user":{"login":"eggsyntax","id":1233514,"avatar_url":"https://avatars.githubusercontent.com/u/1233514?v=3","gravatar_id":"","url":"https://api.github.com/users/eggsyntax","html_url":"https://github.com/eggsyntax","followers_url":"https://api.github.com/users/eggsyntax/followers","following_url":"https://api.github.com/users/eggsyntax/following{/other_user}","gists_url":"https://api.github.com/users/eggsyntax/gists{/gist_id}","starred_url":"https://api.github.com/users/eggsyntax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggsyntax/subscriptions","organizations_url":"https://api.github.com/users/eggsyntax/orgs","repos_url":"https://api.github.com/users/eggsyntax/repos","events_url":"https://api.github.com/users/eggsyntax/events{/privacy}","received_events_url":"https://api.github.com/users/eggsyntax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-11T19:43:26Z","updated_at":"2016-03-13T16:06:49Z","closed_at":"2016-03-13T16:06:49Z","body":"I hit \"Java is required to install this formula\" today while installing maven. OS X 10.10.5, Homebrew 0.9.5 (rev 245a8). I have Java 1.8 installed and $JAVA_HOME is set. Doing `brew edit maven` and deleting `depends_on :java` caused the install to proceed successfully.\r\n\r\nWeirdly, it happened on one machine but not the other, although I use the same dotfiles for both and attempt to keep Java setup identical on both, same versions of everything relevant-seeming.\r\n\r\nAgain, this is solved for me using the workaround, but I was asked to file a bug report on it."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/195987844","html_url":"https://github.com/Homebrew/homebrew/issues/50035#issuecomment-195987844","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035","id":195987844,"user":{"login":"eggsyntax","id":1233514,"avatar_url":"https://avatars.githubusercontent.com/u/1233514?v=3","gravatar_id":"","url":"https://api.github.com/users/eggsyntax","html_url":"https://github.com/eggsyntax","followers_url":"https://api.github.com/users/eggsyntax/followers","following_url":"https://api.github.com/users/eggsyntax/following{/other_user}","gists_url":"https://api.github.com/users/eggsyntax/gists{/gist_id}","starred_url":"https://api.github.com/users/eggsyntax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eggsyntax/subscriptions","organizations_url":"https://api.github.com/users/eggsyntax/orgs","repos_url":"https://api.github.com/users/eggsyntax/repos","events_url":"https://api.github.com/users/eggsyntax/events{/privacy}","received_events_url":"https://api.github.com/users/eggsyntax/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T16:06:49Z","updated_at":"2016-03-13T16:06:49Z","body":"And just to confirm, yeah, after that I can do a standard `brew install maven` and everything works fine. Thanks for the help, folks! Closing."}}