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.