javapackager/ant issue

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


> On Nov 21, 2016, at 9:39 AM, Alan Snyder <javalists at cbfiddle.com> wrote:
> 
> 
>> On Nov 21, 2016, at 9:17 AM, Chris Bensen <chris.bensen at oracle.com> wrote:
>> 
>> Couple questions.
>> 
>> 1. Why isn’t jdk.management.jfr.jmod present?
> 
> I do not know.
> 
>> 2. I assume you are bundling a non-modular jar?
> 
> Correct.
> 
>> 
>> 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.
> 
> How? It is not in the 144 snapshot os x release. I did a fast debug macosx configure and make images on a recent repo clone and it is not there either.

Sorry Alan, right after I sent this email I realized this is a modular only present as a commercial feature. Here’s the bug to track this issue:

https://bugs.openjdk.java.net/browse/JDK-8170127

>> 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.
>> 

In the meantime, if your app was a modular jar it would not link with the module jdk.managemnt.jfr.

Chris


More information about the jdk9-dev mailing list