Menu

#138 Better search capability for Java 11 JDK and higher

Future
open
nobody
None
5
2021-08-24
2021-08-24
No

It was a struggle to use Java 11. Even though "java -version" showed JVM exe was in path, Launch4j couldn't find it. I installed from a ZIP so there were no registry entries. Launch4j doesn't use env variable JAVA_HOME so that didn't work. I am writing software for the military so bundling Java isn't an option (for example: trust store for each group is different). I used the trick from a support discussion of using pseudo JRE bundle "%JAVA_HOME%", specified min version of "11" and that worked. Would you please add a search of the execution path, in addition to registry search to find Java? Adding JAVA_HOME/bin to a computer's search path is a fairly intuitive thing for most people and that would be a way of telling Launch4j where to find the Java. It would be nice too if you looked in standard locations like "C:\Program Files\Java" or "C:\Program Files\RedHat". This is especially important now that most people will not be using "jlinks" to create their own JRE, but will just install a standard Open JDK like Microsoft's free edition to get their Java. Thanks!

Discussion

  • Donald Scott Johnson

    Here is another place to look for a Java JDK: "C:\Program Files\Microsoft\". This is where Microsoft is putting their version of OpenJDK if you use the MSI file to install it.

     

    Last edit: Donald Scott Johnson 2021-08-24
  • Donald Scott Johnson

    Found this optional value "%JAVA_HOME%;%PATH%" to use in "JRE Bundled Path". Still the JDK/JRE set up is confusing.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.