Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To open “this Java application” you need to install the legacy Java SE 6 runtime. #298

Closed
keneo opened this issue Oct 3, 2017 · 1 comment

Comments

@keneo
Copy link

keneo commented Oct 3, 2017

I'm using Mac and I have Java 1.8.0_144 installed.

Is my java version supported?

$ /usr/libexec/java_home  -V
Matching Java Virtual Machines (1):
    1.8.0_144, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
$ JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home python
Python 3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from jnius import autoclass
No Java runtime present, requesting install.

Also a popup window appears:
To open “this Java application” you need to install the legacy Java SE 6 runtime.

Should it work with Java 8?

@keneo
Copy link
Author

keneo commented Oct 3, 2017

Just found this workaround and it works:

This issue was solved by adding JNI to JVMCapabilities in /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Info.plist as suggested in joeferner/node-java#90.

#277 (comment)

@keneo keneo closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant