{"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":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-11T19:43:26Z","updated_at":"2016-03-11T22:35:33Z","closed_at":null,"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/195585189","html_url":"https://github.com/Homebrew/homebrew/issues/50035#issuecomment-195585189","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50035","id":195585189,"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-11T22:35:33Z","updated_at":"2016-03-11T22:35:33Z","body":"On the machine where it wouldn't install:\r\n\r\n```HOMEBREW_VERSION: 0.9.5\r\nORIGIN: https://github.com/Homebrew/homebrew\r\nHEAD: 638d755e5ba753f49e991ca3240768f8ced1f911\r\nLast commit: 2 days ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_REPOSITORY: /usr/local\r\nHOMEBREW_CELLAR: /usr/local/Cellar\r\nHOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com\r\nCPU: quad-core 64-bit haswell\r\nOS X: 10.10.5-x86_64\r\nXcode: 7.2.1\r\nCLT: 7.2.0.0.1.1447826929\r\nClang: 7.0 build 700\r\nX11: 2.7.7 => /opt/X11\r\nSystem Ruby: 2.0.0-p481\r\nPerl: /usr/bin/perl\r\nPython: /usr/bin/python\r\nRuby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby\r\nJava: N/A```\r\n\r\n^ that last certainly looks alarming O_O\r\n\r\nOn the machine where it _would_ install:\r\n\r\n```HOMEBREW_VERSION: 0.9.5\r\nORIGIN: https://github.com/Homebrew/homebrew\r\nHEAD: 1c1f1e42751e3dac6bb9832fd6824757dfbae2b5\r\nLast commit: 25 hours ago\r\nHOMEBREW_PREFIX: /usr/local\r\nHOMEBREW_REPOSITORY: /usr/local\r\nHOMEBREW_CELLAR: /usr/local/Cellar\r\nHOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com\r\nCPU: quad-core 64-bit broadwell\r\nOS X: 10.10.5-x86_64\r\nXcode: N/A\r\nCLT: 7.2.0.0.1.1447826929\r\nClang: 7.0 build 700\r\nX11: N/A\r\nSystem Ruby: 2.0.0-p481\r\nPerl: /usr/bin/perl\r\nPython: /usr/bin/python\r\nRuby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby\r\nJava: 1.8.0_60, 1.6.0_65-b14-468```\r\n\r\nbrew doctor, on the machine where it _wouldn't_ install:\r\n\r\n```Please note that these warnings are just used to help the Homebrew maintainers\r\nwith debugging if you file an issue. If everything you use Homebrew for is\r\nworking fine: please don't worry and just ignore them. Thanks!\r\n\r\nWarning: Your XQuartz (2.7.7) is outdated\r\nPlease install XQuartz 2.7.8:\r\n  https://xquartz.macosforge.org```\r\n\r\nbrew doctor, on the machine where it _would_ install, actually finds a lot more:\r\n\r\n```Please note that these warnings are just used to help the Homebrew maintainers\r\nwith debugging if you file an issue. If everything you use Homebrew for is\r\nworking fine: please don't worry and just ignore them. Thanks!\r\n\r\nWarning: You have external commands with conflicting names.\r\n\r\nFound command `brew-cask` in following places:\r\n    /usr/local/bin/brew-cask\r\n    /usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb\r\n\r\nWarning: Unbrewed header files were found in /usr/local/include.\r\nIf you didn't put them there on purpose they could cause problems when\r\nbuilding Homebrew formulae, and may need to be deleted.\r\n\r\nUnexpected header files:\r\n    /usr/local/include/lauxlib.h\r\n    /usr/local/include/lua.h\r\n    /usr/local/include/luaconf.h\r\n    /usr/local/include/lualib.h\r\n\r\nWarning: Unbrewed static libraries were found in /usr/local/lib.\r\nIf you didn't put them there on purpose they could cause problems when\r\nbuilding Homebrew formulae, and may need to be deleted.\r\n\r\nUnexpected static libraries:\r\n    /usr/local/lib/liblua.a\r\n\r\nWarning: Your Homebrew is outdated.\r\nYou haven't updated for at least 24 hours. This is a long time in brewland!\r\nTo update Homebrew, run `brew update`.\r\n\r\nWarning: Some keg-only formula are linked into the Cellar.\r\nLinking a keg-only formula, such as gettext, into the cellar with\r\n`brew link <formula>` will cause other formulae to detect them during\r\nthe `./configure` step. This may cause problems when compiling those\r\nother formulae.\r\n\r\nBinaries provided by keg-only formulae may override system binaries\r\nwith other strange results.\r\n\r\nYou may wish to `brew unlink` these brews:\r\n    readline```"}}