my applet does not load in my html file?
http://www.uploadyour.info/download.php?filename=game32023.zip
P.S why can’t we upload zip files?
my applet does not load in my html file?
http://www.uploadyour.info/download.php?filename=game32023.zip
P.S why can’t we upload zip files?
The first time I opened the html file the applet didn’t load. I recompiled the code and it’s working. What JDK are you using? Are you compiling in some strange way?
About the code, why are you changing the Thread priorities in the run() method? That’s not necessery.
You can’t upload files here I think, though you can copy and paste your code snippets here if you want.
i’m compiling it by “javac *.java” and my jdk version is 1.6.0_01
i tried a hello world but when i run i get this:
http://img100.imageshack.us/done.php?l=img100/7092/erroroz0.jpg
Are you using Internet Explorer?
If you are, goto Tools, Internet Options, Advanced tab, and look for something saying “Java (Sun) / Use JRE 1.6.0_01 for applet”.
If that box isn’t ticked then your computer will be using Windows’ default installed JRE 1.1.
I’m not sure where to do that on Mozilla Firefox, though I think Firefox doesn’t need to be changed.
i’m using ff but i can’t even run a helloworld from the prompt
Worked fine here in W2K with both IE & FF…
NB You can’t run an applet from the prompt using ‘java’ (unless you add lots of extra code; main() &c - google it) Applets run only on a web-page.
I think you might have another JRE installed somewhere and that your computer defaulted to the older one. Then when you compile with 1.6 your old runtime cannot run the newer code.
Check in your registry under
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
if you have an older JRE installed as well.
nono the helloworld was not an applet
In the command prompt enter:
java -version
and check if that corresponds to your JDK version. If not, then an older runtime was installed after the installation of 1.6. If any program did install an older version then the system would default to that one. You can change the runtime you want to use by editing one of the entries in the key I gave above.