The Java Modules referred to there can simply be the modules of the JRE  - not 
your application.  I use jlink and jpackage all the time to package non-modular 
applications. 

I just have to select the Java modules of the JDK that the application needs.  
Since my application is non-modular, I can’t just point jlink at the app 
modules and have it figured out for me.  

Scott

> On Jul 8, 2021, at 9:04 AM, Emma Atkinson <emma.atkins...@gmail.com> wrote:
> 
> 
> "The jlink tool links a set of modules, along with their transitive 
> dependencies, to create a custom runtime image."
> 
> JPMS is necessary if you want to use jlink, according to the oracle manual. 
> It is the reason I am migrating my old programs to JPMS as and when the mood 
> takes me. 
> 
> 
>> On Thu, 8 Jul 2021, 13:50 Scott Palmer, <swpal...@gmail.com> wrote:
>> Use of jlink and jpackage does NOT require that you use JPMS.
>> 
>> I have never made a “modular” application using JPMS, but I use jpackage all 
>> the time (but I wasn’t making NetBeans platform apps). You just need to know 
>> which modules from the JDK to include in the runtime, assuming you don’t 
>> need all of them. 
>> 
>> In my projects I use a custom Gradle task to run jlink and jpackage. It 
>> might be more difficult with Maven, but it should be possible. 
>> 
>> Scott
>> 
>> > Additionally, although recent developments like jlink and jpackage have 
>> > made it somewhat easier to produce stand-alone application bundles that 
>> > don't require the user to first install a JRE, which is nice, it seems 
>> > that these tools sometimes require the use of JPMS modules, which can be 
>> > problematic in NetBeans (see above). 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 

Reply via email to