| Author |
JXPanel is not loading
|
shiva machhewar
Greenhorn
Joined: Aug 13, 2011
Posts: 4
|
|
I am creating one swing application where i wanted to render web page in swing and capture its event like click. On corresponding click i want to collect some information which depends on element on which event is invoked.
I am using JXPanel in swing so that I could render web page in JXPanel and use its features in swing so that I could apply my further logic of data mining. Here is the code which i used.
And here is the error:
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getMethod0(Class.java:2685)
at java.lang.Class.getMethod(Class.java:1620)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:492)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:484)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 6 more
Exception in thread "main" Java Result: 1
Now the problem is i am getting the following error. If you have any suggestions to solve this error then that would be great.
|
 |
Kemal Sokolovic
Bartender
Joined: Jun 19, 2010
Posts: 792
|
|
|
Are you missing jfxrt.jar?
|
The quieter you are, the more you are able to hear.
|
 |
shiva machhewar
Greenhorn
Joined: Aug 13, 2011
Posts: 4
|
|
Thank very much i was missing that jar..I had to manually find it from jre/lib , I placed it correspondingly and it worked ..Thanks for the reply... Thanks once again.
|
 |
Kemal Sokolovic
Bartender
Joined: Jun 19, 2010
Posts: 792
|
|
|
Any time! Cheers!
|
 |
 |
|
|
subject: JXPanel is not loading
|
|
|