{"action":"opened","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/39492","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39492/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39492/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39492/events","html_url":"https://github.com/Homebrew/homebrew/issues/39492","id":74112411,"number":39492,"title":"formula pylucene asks for pre-req java 1.7 but 1.8 already installed","user":{"login":"edrozenberg","id":2648417,"avatar_url":"https://avatars.githubusercontent.com/u/2648417?v=3","gravatar_id":"","url":"https://api.github.com/users/edrozenberg","html_url":"https://github.com/edrozenberg","followers_url":"https://api.github.com/users/edrozenberg/followers","following_url":"https://api.github.com/users/edrozenberg/following{/other_user}","gists_url":"https://api.github.com/users/edrozenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/edrozenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edrozenberg/subscriptions","organizations_url":"https://api.github.com/users/edrozenberg/orgs","repos_url":"https://api.github.com/users/edrozenberg/repos","events_url":"https://api.github.com/users/edrozenberg/events{/privacy}","received_events_url":"https://api.github.com/users/edrozenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-07T20:14:55Z","updated_at":"2015-05-07T20:14:55Z","closed_at":null,"body":"PyLucene brew says Java 1.7 is required. But Java 1.8 is already installed via the Oracle JDK installer.\r\nAlso the caskroom would install 1.8 anyway. The formula should accept both 1.7 and 1.8:\r\nhttp://jaxenter.com/apache-lucene-and-solr-4-8-join-the-java-8-compatibility-club-107748.html\r\n\r\nBrew install error:\r\n\r\n```\r\n$ brew install pylucene\r\npylucene: Java 1.7 is required to install this formula.\r\nYou can install with Homebrew Cask:\r\n  brew install Caskroom/cask/java\r\n\r\nYou can download from:\r\n  http://www.oracle.com/technetwork/java/javase/downloads/index.html\r\nError: An unsatisfied requirement failed this build.\r\n```\r\n\r\nJava is already installed:\r\n\r\n```\r\n$ java -version\r\njava version \"1.8.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n```\r\n\r\nEnv variables are properly set:\r\n\r\n```\r\n$ export |grep JAVA\r\ndeclare -x JAVA_HOME=\"/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home\"\r\n\r\n$ export |grep ANT\r\ndeclare -x ANT_HOME=\"/usr/local/opt/ant/\"\r\n```"}}