Where do I place the applet class files so that the browser finds them when it loads an HTML file with an APPLET tag?
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
- When I open my "scratch pad" HTML file in my browser, I see all the HTML tags and coding, but not the HTML formatting. Whats going on?
- How do I upload a file from an applet to a servlet, i.e. emulate the browsers multipart/form ability to upload files?
- What is HTTP and HTTPS based file transfer? Can I securely upload files using my web browser?