-
Notifications
You must be signed in to change notification settings - Fork 284
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
Doesn't work on OS X 10.11 El Capitan, but installs correctly #223
Comments
I left a comment on stackoverflow, but here it is again: Please try installing the runtime as discussed here: https://discussions.apple.com/thread/6604985. |
Unfortunately that didn't work. I first added the question on SO because I am not sure if the issue is related to (or can be fixed in) node-java, since I noticed the same error with PhpStorm. However I mostly care about node-java to work. |
A working solution can be found here. In short, Oracle's JDK doesn't advertise itself as supporting JNI, so even though node-java links to JAVA_HOME correctly, when the To fix this I manually enabled JNI by editing <key>JVMCapabilities</key>
<array>
...
<string>JNI</string>
</array> |
@clns any idea why JDK doesn't advertise itself as supporting JNI? |
@junqdu No idea. |
After installing OS X 10.11 Beta, calling java methods on the
java
object doesn't work anymore, and a popup opens saying "This application requires the legacy Java SE 6 runtime which isunavailable for this version of OS X.".
However node-java installs successfully, the only thing I noticed is this message:
I also checked
find-java-home
and it's finding the correct jdk:The text was updated successfully, but these errors were encountered: