I've been using the discontinued BuildDesk to compile and bundle my Java desktop application but it forces user to use legacy Java in macOS. I would like users to use latest as some users feel queazy about the word legacy.
I found a script to create an .app bundle. When I export the main jar from Netbeans (Run Target > Other Targets > package-for-store) and include the jar, libs and resources in the bundle, it runs OK but requires JDK to be installed, unlike the compiled app from BuildDesk.
Is there a way to bundle the jar so user doesn't need to download a JDK? I have found answers for Windows, not macOS. Some say no need for JDK, just JRE but I cannot get app to run if I have only JRE on my Mac.
Thanks.
this is apparenlty because of a bug in mac and java : https://bugs.openjdk.java.net/browse/JDK-7131356
which leads java 1.6 (made by apple not oracle) to be required under any circustance of running a java app.
(even if the app is self-contained apparently)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.