applet not working
in
Programming Questions
•
2 years ago
Hi,
Annoying and common as it is, I have problems with putting my visualization into an applet. Here is the error I get in the java console:
- java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest
- at java.lang.Class.getDeclaredConstructors0(Native Method)
- at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
- at java.lang.Class.getConstructor0(Class.java:2699)
- at java.lang.Class.newInstance0(Class.java:326)
- at java.lang.Class.newInstance(Class.java:308)
- at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
- at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2354)
- at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
- at sun.applet.AppletPanel.run(AppletPanel.java:368)
- at java.lang.Thread.run(Thread.java:680)
- Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest
- at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
- at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
- ... 10 more
Could anyone point in the right direction on how to solve the problem? Thanks!
I have declared all classes and methods inside classes public (but not all variables declared within classes), and signed the jar's in the applet folder.
This is the last final step separating me from battling the on-server script execution and finally almost being able to put the visualization online! So close but so far at the same time. Would highly appreciate your help.
Thanks! Sergiy
1