I am trying to export a sketch as an applet so it will run in the browser (so I can use the netscape javascript library), but when I run the applet in the browser I get this error (twitterarduino is the name of the sketch):
load: class twitterarduino.class not found.
java.lang.ClassNotFoundException: twitterarduino.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:195)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:249)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:179)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:690)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3045)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497)
at java.lang.Thread.run(Thread.java:680)
Exception: java.lang.ClassNotFoundException: twitterarduino.class
I wrote a dummy program as a test with no libraries and it worked fine as an embedded applet. However, once I included any library I got that same error. Many people seem to have gotten this error, but I haven't been able to fix it with any of the discussions I found on the forum thus far. Has anyone found a solution for this problem yet?
I am using Processing 204 (built from source) on a Mac OS 10.7.3. The sketch specifically uses the Ardunio, Serial, and Tweet Stream libraries.
1