aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JXPanel is not loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JXPanel is not loading" Watch "JXPanel is not loading" New topic
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: 825
    
    5

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: 825
    
    5

Any time! Cheers!
 
Consider Paul's rocket mass heater.
 
subject: JXPanel is not loading
 
Similar Threads
JSlider issue
Reacting to events outside of the class in which an event occurs
application preventing windows from shutting down
anyone good at math?
JScrollPane Frustrations