Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where do I place the applet class files so that the browser finds them when it loads an HTML file with an APPLET tag?

0
Posted

Where do I place the applet class files so that the browser finds them when it loads an HTML file with an APPLET tag?

0

Location: http://www.jguru.com/faq/view.jsp?EID=138280 Created: Aug 30, 2000 Modified: 2000-09-07 15:32:43.581 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by John Swinford (http://www.jguru.com/guru/viewbio.jsp?EID=137889 Unless otherwise specified, the browser will look for an Applet’s .class files relative to the location of the HTML file that contains the APPLET tag. The class name is specified by the CLASS attribute of the APPLET tag. In the simplest case where an applet is not in a package, the .class files and .html file will be located in the same directory. If the applet is in a package, then you can think of the directory with the HTML file as the top-level of your CLASSPATH and you need to create subdirectories under that directory for each package level. For instance, if the package was com.jguru, you would need to create a com directory at the level where the HTML file was with a jguru directory under that, which then had th

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123