Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Newbie question

Status
Not open for further replies.

quaked2023

Technical User
Jan 22, 2004
105
MX
Hi there!:

I'm new in Java i've just finished my first applet (with a little help from my cousin) but i have a problem, if i run the applet in my computer it runs just fine, but when i post it on the internet it doesn't load, here is the link by the way i also sent a zip file that conatins all .class files and the html page to some friends of mine, and all of them told me the same thing it doesn't load, they all get the error Loading Java Applet Failed.... any ideas?? Thanks in advance!!!!

-The Only Privacy Left Is The Inside Of Your Head!- QUAKED2023
 
Hi

My first thought : your applet consists of more classes. In the applet tag you specified only the code attribute, so the browser will download only the class which extends Applet, but not the other classes. To make available all related classes you have to use the archive attribute of the applet tag.


Or maybe not. Just your problem seems to look like the one I had.

Feherke.
 
Looks to me as if you have compiled it with one version of the JDK, and are trying to run it with an incompatible JRE version to me.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
sedj means your jdk has newer version than the Java runtime of the browser of your friends.
try
javac -target 1.4.2 yourclass.java
 
Not necessarily prosper - I'm running a 1.5 JRE for applets ...

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I say quaked2023's jdk has newer version than the Java runtime of the browser of his friends.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top