Open antoinepairet opened 7 years ago
@antoinepairet "create a symbolic link pointing to the JVM running on the machine" so you mean create a link on the machine you build with like '/usr/local/java' points to '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk' and then you just need to have the user create the link after installing your electron app? and the bindings are ok so long as the user's jdk supports that compatibility version?
Distributing an electron app with node-java is not maintainable Because the JVM path is bound to a specific version of JAVA.
Is there a way to have
LC_RPATH
resolved at runtime?Using
otool -l nodejavabridge_bindings.node
(full output: otool_-l.txt) I see in the output that the path to the JVM is harcoded to a specific version:Using
otool -L
:Workarounds exists: