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 )

[1179 byte] By [nath_amita] at [2008-1-12]
# 1
put ur html code insted of in html file in the applet code file and set the class path with bellow line;set classpath=%classpath%;c:\amit\java\Time instead of c:\amit\java\time bcz there may be possibility to case mismatchat run time.
alok2k3a at 2007-7-9 > top of java,Other Topics,Java Community Process (JCP) Program...
# 2
Yes, I'll have 5 dollars
DrQuincya at 2007-7-9 > top of java,Other Topics,Java Community Process (JCP) Program...