Skip to content

JDK9 Bad Path for libjvm.dylib #411

@peisenmann

Description

@peisenmann

Attempting to install a fresh copy of node-java with JDK9 installed yields the following error:

ld: warning: directory not found for option '-L/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/jre/lib/server'
ld: library not found for -ljvm
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/nodejavabridge_bindings.node] Error 1

I believe this is because there is no .../Home/jre/lib only a ...Home/lib

14:49 $ ls /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/
Xusage.txt	libjsig.dylib	libjvm.dylib

I believe this post details changes in the structure for the JDK in version 9: http://openjdk.java.net/jeps/220

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions