You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by "Ryan J Ollos (JIRA)" <ji...@apache.org> on 2018/02/13 22:33:00 UTC

[jira] [Comment Edited] (PYLUCENE-40) Document use of JCC_JDK

    [ https://issues.apache.org/jira/browse/PYLUCENE-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16363156#comment-16363156 ] 

Ryan J Ollos edited comment on PYLUCENE-40 at 2/13/18 10:32 PM:
----------------------------------------------------------------

Thanks, I will give it a try.

Is JDK 9 supported? I get an error with JDK 9.0.4:

{code}
$python setup.py build
found JAVAHOME = /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework
Traceback (most recent call last):
  File "setup.py", line 445, in <module>
    main('--debug' in sys.argv)
  File "setup.py", line 390, in main
    raise OSError(process.stderr.read())
OSError: warning: [options] bootstrap class path not set in conjunction with -source 1.5
error: Source option 1.5 is no longer supported. Use 1.6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
{code}


was (Author: rjollos):
Thanks, I will give it a try. Is JDK 9 supported? I get an error with JDK 9.0.4:

{code}
$python setup.py build
found JAVAHOME = /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework
Traceback (most recent call last):
  File "setup.py", line 445, in <module>
    main('--debug' in sys.argv)
  File "setup.py", line 390, in main
    raise OSError(process.stderr.read())
OSError: warning: [options] bootstrap class path not set in conjunction with -source 1.5
error: Source option 1.5 is no longer supported. Use 1.6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
{code}

> 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
>
>
> 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_JRE}}, but it's not documented.
> Second, when setting {{JCC_JRE}} is appears to work correctly and use the path to the specified {{JCC_JRE}} 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_JRE}} is set, so it appears that {{JCC_JRE}} 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)