Search code examples
javainstall4jcytoscape

Point application to non-embedded JRE after installation


Is there a way to point the application to a different JRE after installation? The application installed and created a i4j_jres folder for its embedded java. does this program allow for it to have a different java location without needing to specify an environment variable?


Solution

  • You can change the contents of the file .install4j\pref_jre.cfg to use another JRE. It will still be checked if it matches the version requirements.

    A programmatic way to do this with the install4j API is to call

    com.install4j.api.JVMSelector.setPreferredJVM(...)