-
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
Issues with JDK 13 and 14 #497
Comments
same issue when running please see this answer for possible fix: #494 (comment) |
it looks like this code needs to be changed to account for the directory change in 13-14 Line 48 in 09f87ee
|
installs correctly. However, when using import, I receive the following error:
Same issue exists for OpenJDK 11. Calling node this way resolves the issue:
|
I forked this change, danielwsutton@1e30ba7 From:
To:
So far it seems to be working, I testing on adoptopenjdk8 and adoptopenjdk12 , your mileage may vary, |
I did run into a new issue after getting past the original problem, but can't seem to repro it locally, only when running it on aws, so that's progress atleast...
|
The above issue with It seems like when you switch to a new version of Java, it forces you into a newer version of Node as well. |
I am having the same issue on macOS with JDK11:
2 issues, and workaround:
Workaround:
Workaround (suggested here): Is there a solution that can be applied to this lib without having to run these workarounds? |
I got tired of trying all these suggestions and copied libjli.dylib (currently in |
When I am using JDK 8 and 11, it seems to work fine.
But with JDK 13 and 14, I am getting this error:
SOLINK_MODULE(target) Release/nodejavabridge_bindings.node
ld: warning: directory not found for option '-L/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/lib/jli'
ld: library not found for -ljli
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/nodejavabridge_bindings.node] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/Users/saagarwa/.nvs/node/10.15.3/x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/Users//.nvs/node/10.15.3/x64/bin/node" "/Users/saagarwa/.nvs/node/10.15.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users//node_modules/java
gyp ERR! node -v v10.15.3
Actually in JDK 14 (and 13), libjli.dylib is under:
/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/lib/libjli.dylib
But in JDK 8 and 11, its under:
/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/lib/jli/libjli.dylib
The text was updated successfully, but these errors were encountered: