mik3hall at gmail.com
Fri Mar 8 20:39:06 UTC 2019
> On Mar 8, 2019, at 11:40 AM, Bernd Eckenfels <ecki at zusammenkunft.net> wrote:
> Can you confir it works if you start your application with a stand-alone JDK?
> I suspect you have a custom jlink Image which misses the modules. Can you share your jpackage configuration or at least run „Java –list-modules“ and –validate-modules in your installed app? I think you Need at least jdk.attach
I think jpackage always includes a custom jlink of the runtime?
The build normally includes
--add-modules java.compiler,java.desktop,java.logging,java.management,java.prefs,java.se,java.rmi,java.scripting,java.sql,java.xml,jdk.attach,jdk.jshell \
I remember having issues with this at Java 9 as well. I think the jigsaw forum suggestion of adding java.se <http://java.se/> was what seemed to get it working then.
Output of —list-modules includes
outputdir/HalfPipe.app/Contents/PlugIns/Java.runtime/Contents/Home/bin/java --list-modules --validate-modules
java.base at 13-internal
java.management at 13-internal
java.management.rmi at 13-internal
java.rmi at 13-internal
java.scripting at 13-internal
java.se at 13-internal
jdk.attach at 13-internal
> What I get attempting a JMX attach is…
> 2019-03-08 08:27:03.173 HalfPipe[2071:67749] No attach providers
> 2019-03-08 08:27:03.174 HalfPipe[2071:67749] com.sun.tools.attach.AttachNotSupportedException: no providers installed
> 2019-03-08 08:27:03.174 HalfPipe[2071:67749] at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:202)
> 2019-03-08 08:27:03.174 HalfPipe[2071:67749] at us.hall.scripting.PidConnect.pidConnect(PidConnect.java:44)
> 2019-03-08 08:27:03.174 HalfPipe[2071:67749] at us.hall.scripting.RhinoScriptableObject.pidConnect(RhinoScriptableObject.java:139)
I think the exception does show that the jdk.attach module is included?
More information about the core-libs-dev