... stuff removed...
>BTW, Date.java does have a constructor and an accessor function. I
>compile Testdate.java using:
>javac -classpath .:~/:/opt/jdk1.1.6v4a/lib/classes.zip Testdate.java
>
>The compile executes without warnings or errors. But when I attempt to
>run the app using:
>java -classpath .:~/:/opt/jdk1.1.6v4a/lib/classes.zip Testdate.class
>java complains that it cannot find Testdate.class.
>
>Could someone help me? I'm purposefully created a class that would have
>a name clash in attempting to learn packages.
>
Your problem lies not with the classpath, but with the invocation of
java. You should not use the .class extension when calling your Testdate!
But with the classpath you have given, your Testdate won't find your Date
class. You should add ~/packages to the classpath!
So the invocation of java should be:
java -classpath .:~/packages:/opt/jdk1.1.6v4a/lib/classes.zip Testdate
---
Hein Saris - [EMAIL PROTECTED]
Beta Nine - [EMAIL PROTECTED] - http://www.ping.be/beta9/
---