{"action":"created","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":6,"created_at":"2015-05-07T20:14:55Z","updated_at":"2015-05-17T15:22:38Z","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\nexport JAVA_HOME=`/usr/libexec/java_home`\r\nexport JCC_JDK=$JAVA_HOME\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 JCC\r\ndeclare -x JCC_JDK=\"/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home\"\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/102814718","html_url":"https://github.com/Homebrew/homebrew/issues/39492#issuecomment-102814718","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39492","id":102814718,"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},"created_at":"2015-05-17T15:22:38Z","updated_at":"2015-05-17T15:22:38Z","body":"Still having the problem and haven't been able to figure it out. Complains it can't find idk and I get the Mac OS popup saying \"To open \"Python\" you need to install the legacy Java SE 6 runtime.\"\r\n\r\n```\r\n==> Downloading http://www.apache.org/dyn/closer.cgi?path=lucene/pylucene/pyluce\r\nAlready downloaded: /Library/Caches/Homebrew/pylucene-4.10.1.tar.gz\r\n==> python setup.py install --prefix=/usr/local/Cellar/pylucene/4.10.1 --single-\r\n==> make all install INSTALL_OPT=--prefix /usr/local/Cellar/pylucene/4.10.1 --us\r\nTotal time: 3 seconds\r\nICU not installed\r\npython -m jcc --arch x86_64 --jar lucene-java-4.10.1/lucene/build/core/lucene-core-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/analysis/common/lucene-analyzers-common-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/memory/lucene-memory-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/highlighter/lucene-highlighter-4.10.1.jar --jar build/jar/extensions.jar --jar lucene-java-4.10.1/lucene/build/queries/lucene-queries-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/queryparser/lucene-queryparser-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/sandbox/lucene-sandbox-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/analysis/stempel/lucene-analyzers-stempel-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/grouping/lucene-grouping-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/join/lucene-join-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/facet/lucene-facet-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/suggest/lucene-suggest-4.10.1.jar --jar lucene-java-4.10.1/lucene/build/expressions/lucene-expressions-4.10.1.jar  --use_full_names --include lucene-java-4.10.1/lucene/build/misc/lucene-misc-4.10.1.jar --include lucene-java-4.10.1/lucene/expressions/lib/antlr-runtime-3.5.jar --include lucene-java-4.10.1/lucene/expressions/lib/asm-4.1.jar --include lucene-java-4.10.1/lucene/expressions/lib/asm-commons-4.1.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.regex --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream java.io.DataInputStream --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence java.util.AbstractList 'size:()I' 'get:(I)Ljava/lang/Object;' org.apache.lucene.index.IndexWriter:getReader --version 4.10.1 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py  --files 8 --build \r\nNo Java runtime present, requesting install.\r\nmake: *** [compile] Error 97\r\n\r\nREAD THIS: https://git.io/brew-troubleshooting\r\n```"}}