| | |
Applet Problem...
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2008
Posts: 13
Reputation:
Solved Threads: 0
Hello all,
Hello,
I am having a problem with a java applet i created, a hangman game, but I am having a problem I hope you all could help me out with.
I am able to run my applet in netbeans using f9 to compile and then shift-f6, and everything runs perfectly fine. However when I try to add it to my website it just doesn't work. It comes up as an empty box with an x in the top left and then when I go to the java console i get this message:
load: class HangMan.class not found.
java.lang.ClassNotFoundException: HangMan.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)
but i tried using both the .jar method and then just uploading all of my .java and .class files into a directory and then trying it that way....
this is what I have for the website:
and it just doesn't work.... I have tried both using a .jar and also just uploading all the class files into the directory and doing it that way and still nothing...
Can you see what is wrong?
Here is my website link for example...
http://cc.usu.edu/~a01098213/game.html
Hello,
I am having a problem with a java applet i created, a hangman game, but I am having a problem I hope you all could help me out with.
I am able to run my applet in netbeans using f9 to compile and then shift-f6, and everything runs perfectly fine. However when I try to add it to my website it just doesn't work. It comes up as an empty box with an x in the top left and then when I go to the java console i get this message:
load: class HangMan.class not found.
java.lang.ClassNotFoundException: HangMan.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)
but i tried using both the .jar method and then just uploading all of my .java and .class files into a directory and then trying it that way....
this is what I have for the website:
Java Syntax (Toggle Plain Text)
<applet code="HangMan.class" archive="HangMan.jar" width="300" height="200"></applet>
and it just doesn't work.... I have tried both using a .jar and also just uploading all the class files into the directory and doing it that way and still nothing...
Can you see what is wrong?
Here is my website link for example...
http://cc.usu.edu/~a01098213/game.html
•
•
Join Date: Nov 2007
Posts: 9
Reputation:
Solved Threads: 2
Your hangman program runs well in my machine....
Testing your applet just after you have uploaded it on the host may come-up with that problem. Bec, the file that have been uploaded may still on the process at that time.
have you enabled your java?
What JRE version are you using?
If you are using Mac, you can read this for some time,
regards,
sukatoa
Testing your applet just after you have uploaded it on the host may come-up with that problem. Bec, the file that have been uploaded may still on the process at that time.
have you enabled your java?
What JRE version are you using?
If you are using Mac, you can read this for some time,
regards,
sukatoa
Last edited by sukatoa; Apr 28th, 2008 at 10:55 am.
![]() |
Similar Threads
- Applet, thread (Java)
- Fecora Core 6/ c ore 4 installation crashes: network manager applet problem (Getting Started and Choosing a Distro)
- Custom CharsetProvider doesn't get loaded in signed applet (Java)
- Java problem in IE (Web Browsers)
- Java Game Applet Too Small (Java)
- Problem with Yahoo chat applet. (Windows NT / 2000 / XP)
- svchost.exe error (Windows NT / 2000 / XP)
- DNS & internet explorer. (Web Browsers)
- Applet or Application? (Java)
Other Threads in the Java Forum
- Previous Thread: Help, how would I store an array of objects ?
- Next Thread: cannot read Hello.java
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows





