Click here to Skip to main content
15,892,805 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to implement java application which could be able to load html file (+ css + javascript), I try lobobrowser, but when I run the BarebonesTest.java sample in http://lobobrowser.org/cobra/getting-started.jsp[^], I got the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/lobobrowser/util/EventDispatch2
at test3.main(test3.java:39)
Caused by: java.lang.ClassNotFoundException: org.lobobrowser.util.EventDispatch2
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)
... 1 more

what is the problem?
could any body help me?
Is there a better solution for me instead of lobo?
Posted
Updated 14-Jul-14 4:09am
v2
Comments
Richard MacCutchan 14-Jul-14 11:36am    
You are referencing the class org.lobobrowser.util.EventDispatch2, but Java cannot find it in the libraries on your system.
Osmund Francis 17-Jul-14 10:19am    
For a JavaTM component that has decent HTML support (with Javascript and Cascade Style-Sheets), I recommend using JavaFX.

You may also choose to simply embed JavaFX in a Swing application. See the following example:
http://docs.oracle.com/javafx/2/swing/SimpleSwingBrowser.java.htm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900