- Luca Militello
- PowerBuilder
- Tuesday, 19 July 2022 03:05 PM UTC
hi,
i'm using PB2019 and i have a problem with the JVM.
Is it possible to set the JRE runtime when I call the JVM from executable?
I need to set a particular JRE in an application regardless of the one set in the PC where I am running the application. The idea is to put a "JRE" folder with all the files needed for that JRE version, in the same folder where the executable is present. Then I would need to point to that version of JRE bypassing, if any, the one installed on the PC. Is it possible to do such a thing? I was able to do this only by setting the environment variable "JAVA_CLASSPATH" and making it point to the version that interests me. But I don't want to change the variable on the PC because it could be used by other applications.
Thank you very much!
Luca
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.