Monocle with VNC for Jenkins
Uwe Sander
usander at tesis.de
Thu Jan 23 01:53:15 PST 2014
Stephen F Northover <steve.x.northover at oracle.com> , 22/1/2014 5:20 PM:
There is a StubToolkit. It is not part of the jar that is shipped with the JDK. You will need to build JFX and test against your build.
https://javafx-jira.kenai.com/browse/RT-35010
That's what I did. When I run the SimpleControlLauncher class from your RT 35010 comment with "-Djavafx.toolkit=com.sun.javafx.pgstub.StubToolkit", I get the following exception:
java.lang.ClassNotFoundException: com.sun.javafx.pgstub.StubToolkit
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.javafx.tk.Toolkit.getToolkit(Unknown Source)
at com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
at com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Unknown Source)
The StubToolkit jar is on the classpath, which I checked by adding
Object newInstance = Class.forName("com.sun.javafx.pgstub.StubToolkit").newInstance();
to the SimpleControlLauncher code. No exception is thrown when I run the class without the command line parameter. I use jdk8 b124 under Windows 7.
Any idea why this is not working? And is this the correct place to discuss about it or should I add a comment to the Jira issue?
Uwe
More information about the openjfx-dev
mailing list