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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ack! load class clientApplet not found

Status
Not open for further replies.

luciddream

Programmer
Nov 8, 2000
712
US
here is my problem:

i write an applet, include it om an html page, but when the page loads it says:

load: class ClientApplet not found

the problem is that i do have clientApplet.class in the same directory as the page and this is how i put the applet on the page:

<applet code=&quot;clientApplet.class&quot; name=&quot;zgfzd&quot; width=&quot;300&quot; height=&quot;300&quot;></applet>

for some reason it refuses to find the file.

if anyone has any info on this, i'd greatly appreciate it.

adam
 
Dear Adam,

Java is case sensitive, clientApp != ClientApp

Good luck
-pete
 
my mistake on the post... the case is on the page.

the applet is clientApplet.class, and i call it in the applet page clientApplet.class.

the problem lies elsewhere.
 
You could try putting a codebase in the applet tag.

--Will Duty
wduty@radicalfringe.com

 
i think i found the problem, alothough it doesn't make much sense....


my browser can't seem to find javax.swing.JApplet;

that's why its giving a load class not found error, but the strange thing is, when i run it in the appletveiwer utility thing, it works fine..... anyone know how to fix this.

 
> it works fine..... anyone know how to fix this.

Fix it in your browser? Upgrade to a browser that supports swing. Is there one? Dunno.

Fix it in everyones browser? Dunno.

Are you using any of the swing functionality? If not use the 1.1 Applet class 'java.applet.Applet'

-pete
 
i am using swing functionality, and i can view applets that use swing...

for some reason i can't view my own.

 
To get swing functionality you need to force the browser to use the correct java runtime files. If you go to the faq section in the Java (sun) forum i wrote a faq on how to solve this. You basically need to force the browser to use the runtime files above 1.2

good luck

ackka
ackka@mad.scientist.com
duke_wave.gif
Java is the Future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top