version check
Brought to you by:
grzegok
The check for min java version fails for java updates greater than 99, e.g. 1.7.0_100.
When I created an exe with minVersion 1.7.0_40 and had java 1.7.0_101 installed it couldn't be started due to that the java version was to old according to launch4j.
The problem might be in head.c, function regSearch, where srtcmp() is used to compare versions?
Haven't made a build, just looked in the code.
Hi, yes, thanks for reporting.
I have a similar problem:
After installing any Java 9 build after introducing JEP 223 (http://openjdk.java.net/jeps/223), the lauch4j cannot properly detect it (which now introduce it's version as 9, not 1.9). Like in above case, I'm recieving the window that Java 1.x is required, and then I have Java download website opened.
I have the same problem - when I try and launch a Java app created with Launch4j, it is unable to detect a JRE if I am using Java 9 :(
The problem with 3 digit update (over 99) is fixed. The case with Java 9 is different, I'll investigate later.
Grzegorz
Great, thanks! Looking forward to next release.
Den 1 juni 2016 23:22 skrev "Grzegorz Kowal" grzegok@users.sf.net:
Related
Bugs:
#146Hi Grzegorz,
Java 8 update 101 was released yesterday (July 19, 2016) which is going to really highlight this one. Do you have an ETA on when this fix might be availble? or know of any possilble workaround?
Cheers
Liam
Hi Liam,
I'm working on the release, yesterday I've made the last changes in the docs and plan to release launch4j 3.9 today. If for some reason this doesn't work out I'll release it tomorrow.
Cheers,
Grzegorz
Great stuff Grzegorz, I've just downloaded and it works perfectly! Cheers, much apprecaited!
3.9 released.
I moved the Java 9 detection problem to a feature request: Support Java 9.
The problem is that this version is not added to the registry as the previous ones so launch4j cannot detect it, it's not just a matter of the versioning scheme. We'll if this changes with official release or the search has to be completely changed.
Grzegorz