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

Problem loading applet

Status
Not open for further replies.

rocknrisk

Programmer
May 14, 2002
43
GB
Hi all,

OK. I'm about to crack here. I have written an applet. Included the <applet> tag in my html file but the applet won't load. I know that my classpath, etc. is correct because when I use appletviewer it works. I am using 1.3.1 and I have the plugin installed. We are working on a NT network - could that be the problem? The webpage is on a different drive from the workstations (acting as a server). My applet (the class files, the html file, even the source files are all in the same directory so what's the problem. I'm doing my head in, honestly. OK, here's the html code:

<applet
code=&quot;VATCalc.class&quot;
width=&quot;330&quot;
height=&quot;170&quot;>
</applet>

The complier creates 2 anonymous classes VATCalc$1 & VATCalc$2. Could this be a problem?

Thank you in advance to anyone who could help me sort this simple little silly big problem out. ;o)

Clinton

&quot;The important thing is not to stop questioning.&quot; - Albert Einstein
 
Because the applet executes on the client, all the needed classes have to be on the client or it won't work. Those two other classes are most likely causing your problem.

Try bundling all the classes up in a jar file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top