[ https://issues.apache.org/jira/browse/PYLUCENE-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498446#comment-16498446 ]
Mithun Paul commented on PYLUCENE-40: ------------------------------------- OMG! yes, your patch worked. What would I have done without peer support. Only difference was that I exported my JCC_JDK from my bash_profile instead of passing it as a command line argument. But good lord, 2 weeks it took me to reach till this stage of installing JCC. They must definitely have better documentation. Alright, see you at the next intersection, the Make file :D For the record/for progeny: in the patch file, just in case it is not clear, what [~rjollos] is doing is, removing lines at the given line numbers and adding a few new lines. i.e the lines he removed is shown using the minus sign and the ones he added using the plus sign. > Document use of JCC_JDK > ----------------------- > > Key: PYLUCENE-40 > URL: https://issues.apache.org/jira/browse/PYLUCENE-40 > Project: PyLucene > Issue Type: Improvement > Reporter: Ryan J Ollos > Priority: Minor > Attachments: jcc_build_output.txt, jcc_build_output2.txt > > > I found two issues when trying to [help someone on Stack > Overflow|https://stackoverflow.com/questions/48711714/] build the library. > First, the [documentation on PyPI|https://pypi.python.org/pypi/JCC/] states: > {quote}JCC’s setup.py file needs to be edited before building JCC to specify > the location of the Java Runtime Environment’s header files and libraries. > {quote} > However, it appears you have a better mechanism of setting {{JCC_JDK}}, but > it's not documented. > Second, when setting {{JCC_JDK}} is appears to work correctly and use the > path to the specified {{JCC_JDK}} in the compilation, but the first line of > output might indicate that a different JRE is being used: > {code:java} > $JCC_JDK=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home > python setup.py install > found JAVAHOME = > /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home > found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework > ... > {code} > So maybe the found {{JAVAHOME}} should not be printed if {{JCC_JDK}} is set, > so it appears that {{JCC_JDK}} is successfully overriding the {{JAVAHOME}}. > I'll attach the full output from building on my platform. -- This message was sent by Atlassian JIRA (v7.6.3#76005)