If I close
applet with JavaFX content (so applet is using EDT and JavaFX
thread) the jp2launcher.exe continues run for almost 1 minute so that applet cannot be easily started again (as soon as it is not recognized as new instance – after browser close etc.).
I have search Google but I have found no solution. I have found only very similar issue –
https://bugs.openjdk.java.net/browse/JDK-8051030.
Another solution would be if the applet could start on lasting jp2launcher.exe but it cannot. It is simply not invoked. Only init method of JApplet is overriden.
I have make some reasonable long sample of this behavior but because of its shortness you can see that
jp2launcher.exe terminates with very little delay but definitely not terminates along with applet termination.