I have written a Java 17 application that provides several MBeans. If I start the jar with a standard Java 17 SDK via java -jar myjar.jar
the applications starts and I can connect to it from JConsole.
Then I have created a custom runtime image with jlink.
The application itself runs fine with this image. It gets the MBeanServer and registers successfully my MBean.
When I start Jconsole I can select the running application (as "Local Process") but then the connection to this process can't be created.
I have tried to add a number of additional modules (like jdk.management, java.management, ...) but without success. It seems that at least one module is missing because in my customer runtime image e.g. the DLL management_ext.dll is missng.
Any idea which modules are necessary?