Here is the answer,
CODEBASE indicates the path to the directory of the applet class. CODEBASE is used for telling how to find the class file when it is not in the same directory as the web page. Do not use CODE to indicate the path, use CODEBASE.
<APPLET CODE="MyApplet.class" CODEBASE="../applets/" WIDTH=100 HEIGHT=100>