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

Is there a way to find JAVA_HOME and set include libraries at runtime? #574

Open
doozi316 opened this issue Aug 24, 2023 · 0 comments
Open

Comments

@doozi316
Copy link

Hi,
Is there a way to find JAVA_HOME and set include libraries at runtime?

I understand that in Binding.gyp it finds the JAVA_HOME of the build environment and builds the jvm and Java's libraries.
And I found that the library built with it is used as #include in the c++ file.
I noticed that in postInstall.js the JAVA_HOME path of the build environment is created in jvm_dll_path.json .

Even if the user's environment does not have the same version of JAVA as the build environment, I want the program to run as long as there is a different version of JAVA.
In the case of jvm_dll_path.json, I was able to somehow obtain the JAVA_HOME of the user environment by referring to issue #378,
I don't know how to dynamically modify Java-related libraries built with node-gyp included in the nodejabridge_bindings.node binary module.

I don't know much about c++.
If you know a good way related to this, please reply.
Thank you

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