Log In · Register

 
 
Closed TopicStart new topic
Big problem :'(, java problem
nolongerinuse
post Jun 5 2005, 09:59 AM
Post #1


nolongerinuse
***

Group: Member
Posts: 41
Joined: Jan 2005
Member No: 92,567



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
post Jun 5 2005, 11:57 AM
Post #2


mmm hmmm
******

Group: Member
Posts: 1,591
Joined: Sep 2004
Member No: 47,325



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 -
 
nolongerinuse
post Jun 5 2005, 02:17 PM
Post #3


nolongerinuse
***

Group: Member
Posts: 41
Joined: Jan 2005
Member No: 92,567



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...?
 
nolongerinuse
post Jun 5 2005, 03:15 PM
Post #4


nolongerinuse
***

Group: Member
Posts: 41
Joined: Jan 2005
Member No: 92,567



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
post Jun 5 2005, 11:59 PM
Post #5


creepy heather
*******

Group: Official Member
Posts: 4,208
Joined: Aug 2004
Member No: 41,580



good tongue.gif now dont double post

topic closed
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: