It may happend often that programmers are switching different versions of Java via JAVA_HOME or Path. I had a situation where the registry entry was corrupted ( indicating to a invalid path ) but the JAVA_HOME was ok, also the path. Running java from Command prompt worked.
When trying to execute the .exe generated by launch4j I got a corrupted registry message.
It would be nice if Launch4J would check all this possible installations, and do not take into consideration the corrupted one.
Also the user messages could be more intuitive:
* The current application requires Java 1.6. Your registry points to a corrupted Java path. How to proceed ? 1. Download and install a fresh copy of java from java.com 2. Locate a java installation 3. Cancel
Also if no java was found on the computer, a similar message should show up. More options for the users are better.
* The current application requires Java 1.6. No Java 1.6 found on current machine. How to proceed ? 1. Download and install java from java.com ? 2. Locate a java installation 3. Cancel
You can even have a button on the dialog and show the instalations you found, or debug. Take more in consideration a better feedback in case java was not found or application cannot start.
Thank you, Dragos