Support Java 9
Brought to you by:
grzegok
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.
GK: Wait until official release - this version has to be registered properly in order to work.
Bump for Java 9 support. The Java 9 EA already works pretty well for apps that need High DPI support.
Java 9 is Feature Complete and EA builds are readily available:
https://jdk9.java.net/download/
I'd also be happy to send a paypal donation your way. ;)
Replace the head.o file in head or head_jni_BETA folder in launch4j 3.9.
This will additionally search for jre/jdk 9.
If you don't specify the max version it will select this one, if you want it to be the minimum version then configure minVersion to 9.0.0.
This is also a preview version as I don't know if they change the final info in winodws registry, but the versioning scheme will be different and problably reg keys too.
Grzegorz
Last edit: Grzegorz Kowal 2017-02-22
Thanks. I'll try with this.
Hi,
We encountered the same problem after installing JRE 9-ea+167. JRE 9 is to be release in July, 2017.
The following link shows that the version change seems to be solidified:
http://openjdk.java.net/jeps/223
When do you plan on releasing a new version of Launch4j which supports the new version string (including the "9-ea" string)? We would like to verify the fix and get it included in our product before jre 9 gets released in July.
Thanks!
Larry C.
Any response from my question last week? My team is asking for an update...
Thanks,
Larry C.
Hi, I've been rather busy lately so I couldn't take care of launch4j issues. I'll make a test with this new version and try to release an update till end of May. Might be I'll have some time during the upcoming week.
Grzegorz
Any update on this issue?
Thanks!
Larry C.
Unfortunately I had to drop the new release due to anti-virus false positives. If the attached head.o works for you and does not trigger such warnings, please use this. The release does not include more in tems of Java 9 support at this moment,
Thanks for the update. A couple of questions:
- Do you plan on releasing another version of launch4j / launch4jc that does not have the anti-virus issue? If so, do you have a timeframe on that?
- In the meantime, do you have instructions / build files that will help us use your new version of head.o and produce launch4j.exe and launch4jc.exe for windows?
Thanks!
FYI, a co-worker figured out how to build with your head.o, and we avoid the error on Java 9.
-> Do you plan on releasing an official version of launch4j / launch4jc that does not have the anti-virus issue? If so, do you have a timeframe on that?
Thanks!
Larry C.
Great! I just released 3.11 that fixes the problem, though webroot still complains in case of the zip package (out of almost 60 antivirus tools) but the report in virus total does not provide details as to which file did not pass the scan. The .exe package which is the default for windows and other packages pass all tests.
Hello
Do you have some plan to release soon a version compatible with Java 9 ?
Best regards
Stephane
I'm also interested in a Java 9 compatible version. I would like to move my deployment process to my Java 9 development machine. Thanks for launch4J, it makes packaging really easy over multiple platforms.
Claude, well many people interested in this, but it doesn't really help =)
Dear Grzegorz, please share your plans regarding this feature.
FYI: I made it work with java 9 and 10 on windows, if you need it ASAP you can get it here: https://github.com/skarpushin/launch4j-fork/tree/adding-java9 . Essentially the major difference is this file: https://github.com/skarpushin/launch4j-fork/blob/adding-java9/head/head.o if you use it it will correctly compare java versions and wont give you alerts when java is actually available. Corresponding sourcecode change is here: https://github.com/skarpushin/launch4j-fork/blob/78f46fbea8325a422862ca8892737d5e63ec45fb/head_src/head.c#L331
I used launch4j to package my open-source application: PGP Tool. Version that is packaged particularly with customized launch4j located here: https://github.com/pgptool/pgptool/releases/tag/0.5.1.0 - if somebody can run antivirus tests - that would be nice (use zip or msi -- whichever works for you).
I'll create pull request later. There are 2 things preventing me from doing it right now:
Last edit: Sergey Karpushin 2018-04-23
UPD: Merge request created: https://sourceforge.net/p/launch4j/git/merge-requests/14/
@Grzegorz, please let me know what you think.