Who wants 5 dollars ?
I wrote a public class Time ( saved it in Time.java ) in a package amit.java.time and another public applet class TimeTest ( saved it in TimeTest.java ) which imports the Time class . Both the class and the applet class code compiled successfully . But when I run the appletviewer from command line the HTML file shows an error that the Time.class is not found .
THE PROCEDURE I FOLLOWED :--
1> I compiled (Time.java) with the command: javac -d \ Time.java
2> Then I set the classpath with the command: set CLASSPATH=\;
3> Next I compiled TimeTest.java with the command : javac TimeTest.java
4> Then I created the html file
<html>
<applet code="TimeTest.class" width=300 height=100>
</applet>
</html>
And I saved it as TimeTest.html
5> Finally I run the appletviewer: appletviewer TimeTest.html
ERROR:--
java.lang.NoClassDefFoundError:amit/java/time/Time
Where is the BUG !!
Handling Packages in java proves to be a difficult affair to me :-)
Sorry pals I'm running out of dollars so dont press me on that ......THANK U.( AMITAVA )

