My Applets
My Java programming started off in 1998 by developing these Applets listed below. It was because of Java Applets that I got interested in the internet industry and started my career as a Java/web developer.- AudioPlayer Applet
- Buttons Applet
- Chart Applet
- GuestBook Applet
- ImageAnimator Applet
- KissIdol Applet
- MacrossGame Applet
- RealTimeCounter Applet
- ScramblePuzzle Applet
- WindowMenu Applet
Troubleshooting
Here are solutions to some of the most common problems user have encounter when trying to setup my applets:
Class not found
There are two common mistake which lead to this problem: The first one is when people have misused the CODEBASE tag when embedding an Applet on to their web page. The CODEBASE tag is an option which tells Java that the class files are found below the directory where the current page is located. For example, if an applet called MyApplet.class is in the directory classes , and the classes directory is below the current location, you would use:
<applet code="MyApplet.class" codebase="classes" width="100" height="100">
Keep in mind that this tag is not nescessary if you decide not to use this tag then make sure that all the class files are in the same directory as the web page which calls it.
The second common mistake is when people forgetting to including the ARCHIVE tag to indicate which Java Archive file (JAR) it the applet is suppose to use. For example if MyApplet.jar is the JARs file which you want to use then, you would use:
<applet archive="MyApplet.jar" code="MyApplet.class" width="100" height="100">
Keep in mind that the JARs file doesn't have to have the same name as the class which is called by the Applet.
Security Error
Because applet are designed to be loaded from a remote site and then executed locally, security becomes important. For this reason, applets cannot communicate with any host other than the server from which they were downloaded (that server is called the original host). Thus, applet which have links that are referring to a different server than its original host are not allowed.
