Maybe read this: https://medium.com/azulsystems/using-jlink-to-build-java-runtimes-for-non-modular-applications-9568c5e70ef4
Gj On Sat, 30 May 2020 at 20:32, Geertjan Wielenga <geert...@apache.org> wrote: > What happened when you put “jlink netbeans” into Google search? I see lots > of articles... > > Gj > > On Sat, 30 May 2020 at 20:26, Kenneth Fogel <kfo...@dawsoncollege.qc.ca> > wrote: > >> Thank you for the info. jpackage was first fxpackage, then became >> jpackage, then was dropped when FX was dropped, and then just returned. One >> of its uses was to create installable packages, either exe, dmg or whatever >> your flavour of Linux needs. >> >> I am not fond of CLI, I believe my picture is on dart boards of Linux >> aficionados everywhere 😊. I believe your CLI suggestion is using the >> system installed Java runtime on your system and not the jlink Java >> runtime. On my system if I went into the image folder I could get it to run >> with the jlink rather than system Java with "bin\java >> com.mycompany.test2.App". The old Shade plugin could do that but it >> required Java installed. I thought jlink working with jpackage could do >> that. >> >> Answering your email forced me to looking into the image folder. Hiding >> in a file called modules in the lib folder is your code. So when you enter >> "bin\java com.mycompany.test2.App" Its pulling the code from the >> images\lib\modules. Therefore it does not depend on the presence of a >> system Java. What I am not sure of is whether or not this image will work >> on a Mac or Linux, my guess is it won't. >> >> So it all comes back to what is the purpose of jlink if it doesn't also >> create something that allows you to run your code with a single command on >> the command line or as a clickable file in a GUI system. I appreciate that >> it creates an instance of Java that can run your code without needing to >> download Java first. It feels like NetBeans is not completing the task by >> just using jlink. As always I assume the misunderstanding of its purpose is >> my fault. >> >> Bringing this back to NetBeans, I think that generated code should >> include comments that either explain the purpose or provide a link to >> documentation that explains it. I think that jlink is an incomplete >> solution and that should be explained. Could explain why modules still have >> not caught on. Now I will crawl back under my rock. >> >> Ken >> >> >> -----Original Message----- >> From: Ernie Rael <err...@raelity.com> >> Sent: May 30, 2020 1:47 PM >> To: dev@netbeans.apache.org >> Subject: Re: jlink in JavaFX project >> >> On 5/30/2020 9:41 AM, Kenneth Fogel wrote: >> > >> > This is a more general question. NB 12 b6 now has a jlink option for >> > the JavaFX Simple project. Cool, I haven’t used this feature of Java >> > yet. As the module-info.java file did not indicate what to include or >> > exclude (remember I don’t know how to use jlink) I believe that what >> > was generated in the target/image folder was the equivalent of a JRE. >> > I make this assumption because the folder is 60 mb in size. Heck, I >> > just searched thru the image and found keytool.exe. I should ask the >> > jlink group at Oracle about this. My ignorance is on display. >> > >> > So here is my question. Without jpackage creating an executable >> > package what is the value of jlink? >> > >> I'm not sure what you're looking for, or what jdk you're running, and I >> don't know anything about jpackage other than what I can intuit from the >> name. I think it's recent, >> >> There is: jdk-14.0.1/bin/jpackage.exe. >> >> Also in case you're not aware, you can cd >> <project.directory>/target/image/bin and then, assuming your package is >> org.play.proj and the main class is App, run your app by doing >> >> ./java org.play.proj.App >> >> -ernie >> > >> > To everyone who is working on NB you have my utmost respect. You are >> > doing amazing work. I’ll be doing a Jakarta EE tech talk at the >> > Eclipse foundation on June 9 at 11 AM DST and I will be using NetBeans >> > (they know I will be). >> > >> > Ken >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: dev-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: dev-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >>