The name of my html file is download.html.It is in the E:\Click_Eat folder. I have the html file calling the applet Download.The applet'Download' is in the C:\ecllipse\ folder, . class file of the applet is in C:\Supjava\EcllipseProjects\SwingTest.My applet 'Download ' is in the package SwingTest. iam using
<html> <head> <title>DOWNLOADING FROM SUN.COM</title> </head>
1)note the code and the codebase values.Here iam not specifying the entire path of the .class file of the applet in the code base which is present in a different path compared to where my html is stored.
2)Iam using the package name in the code value ie code=SwingTest/Download.class.If i just use code=Download.class it gives me an error java.lang.NoClassDefFoundError: Download (wrong name: SwingTest/Download) please explain why ? and what values should i put for code and codebase.