JDK 1.8 update 92 (32-bit version) is currently in use. Why can't ScenicView find my JavaFX application when starting from the jar or as the -javaagent: <parameter? >
If I run the JavaFX application and then run ScenicView from a jar file, it just sits there, trying to find something to connect to. I have the -debug option on the command line, and all I get is: -
Platform running Launching ScenicView v8.0.0 Startup done Creating server Server done Number of running Java applications found: 0 0 JavaFX applications found
I tried to run ScenicView as an โexternal toolโ from IntelliJ (with the correct JVM), and only from the command line. The same result.
The -javaagent method does not work either. If I add jar as the -javaagent parameter for my application, then according to the documentation, I just get this error on startup:
Exception in thread "scenic-view-boot" java.lang.IllegalStateException: Toolkit not initialized at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:273) at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:268) at javafx.application.Platform.runLater(Platform.java:83) at org.scenicview.ScenicView.lambda$premain$34(ScenicView.java:122) at java.lang.Thread.run(Thread.java:745)
The only way to start this work is to add the ScenicView jar to my path to the application class and embed the launch in the application source code, for example,
ScenicView.show(mainScene);
This is not as convenient as the ability to just run it as a standalone tool when I need it.
This worked perfectly. I can dig out some older versions of the JDK and see if it works with an earlier jvm (update 77 shows exactly the same problem), but in the meantime, is there a way to get a more detailed log so that I can try to find the problem
David source share