javapackager/ant issue

Chris Bensen chris.bensen at oracle.com
Mon Nov 21 17:17:59 UTC 2016


Hi Alan,

The module jdk.management.jfr is considered a redistributable module to the Java Packager so if you are packaging a non-modular jar this will be required. Internal implementation detail, the list of modules in this same category are located in jdk.packager/classes/jdk/packager/internal/resources/tools/redistributable-files/redistributable.list

Couple questions.

1. Why isn’t jdk.management.jfr.jmod present?
2. I assume you are bundling a non-modular jar?

Two options I’m pretty sure will work without seeing your project or having answers to these questions:

1. Make jdk.managemnt.jfr.jmod present in the jmods directory.
2. Turn your non-modular jar into a modular jar and unless you specifically require the module jdk.managemnt.jfr, it will not be linked in my jlink.

Chris


> On Nov 21, 2016, at 9:09 AM, Kevin Rushforth <kevin.rushforth at oracle.com> wrote:
> 
> This is probably better discussed on the openjfx-dev mailing list (or maybe the jigsaw-dev mailing list).
> 
> What build of JDK 9 are you using?
> 
> -- Kevin
> 
> 
> 
> Alan Snyder wrote:
>> I am trying out creating a macOS bundled app using the ant plugin, and am getting this error:
>> 
>> Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module jdk.management.jfr not found
>> 
>> It is true that this module is not present.
>> 
>> Advice or workaround solicited…
>> 
>>  



More information about the jdk9-dev mailing list