Help - Search - Members - Calendar
Full Version: Big problem :'(
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
JenksTrojans2007
I have an applet in a skin, but whenever I try to use it it says "<applet name> notinited," shortly before saying, "Loading Java Applet Failed." I have searched all over the internet, yet I can't seem to find a solution. Any ideas? cry.gif

Code:


:::EDIT::: It's not Xanga or Windows, because it worked on the site I got it from, and worked offline. It also fails to work outside of Xanga when I code it. I believe that leaves us to blame the file hosting, yet cpanel x doesn't show anything wrong. wacko.gif

Sorry if I posted this in the wrong forum.
souldreamers
This belongs in Programming. I don't think xanga allows applet codes, but I'm not sure. Maybe someone else can figure it out...

- Topic Moved -
JenksTrojans2007
It's not Xanga, I don't know if Xanga WILL allow the script once I get it working, but right now, Xanga's not my problem. I have targeted the error to this:
QUOTE
load: class http://www.jenks.forummax.com/AnWater.class not found.
java.lang.ClassNotFoundException: http:..www.jenks.forummax.com.AnWater.class
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)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more


In other words, my take on this is that it can't locate the .class file, yet it is clearly marked in the script. I read somewhere about binary and ASCII uploading...?
JenksTrojans2007
DAYS OF WORK HAVE FINALLY PAID OFF!

I had to define a codebase:

QUOTE
<applet codebase="http://www.jenks.forummax.com/" archive="AnWater.jar" code="AnWater.class" width="345" height="496">


cry.gif + biggrin.gif + laugh.gif = TEARS OF JOY!
Heathasm
good tongue.gif now dont double post

topic closed
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.