We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Web deployment
Page Index Toggle Pages: 1
Web deployment (Read 521 times)
Web deployment
Sep 5th, 2006, 8:41pm
 
I have an extremely basic question.. I create a basic sketch in proce55ing, export it, then upload the files to a webserver (making sure that the .jar files are FTP'd in binary mode). But I get a "noninited" error when trying to run the applets in my browser. They work locally, but not over the web. I've ascertained that it may have to do with an incorrect classpath.. but I'm new to this whole java world - is there a simple solution?
Re: Web deployment
Reply #1 - Sep 9th, 2006, 2:45pm
 
have you checked the faq?
http://processing.org/faq/bugs.html#applet
Re: Web deployment
Reply #2 - Sep 14th, 2006, 4:51am
 
Yes, I had checked the FAQ.. if I create the simplest sketch, export and upload to a webserver, it doesn't work. The Java console in my browser says:

java.lang.NoClassDefFoundError: processing/core/PApplet

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

The code I'm using is simply:

void setup() {
 size(100, 100);
}

void draw() {
 fill(0);
 rect(0, 0, 100, 100);
}

I'm using Windows XP and the latest version of Java.
Re: Web deployment
Reply #3 - Sep 15th, 2006, 2:40pm
 
do you have an applet posted somewhere that we can see?
Page Index Toggle Pages: 1