The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


You don't need to import the package where you place your class.

Posted by Kishori Sharan on January 25, 2002 at 5:10 PM

YOu don't need to write these two import statements because these classes are in the same package which you are importing. So, I took out this import lines before compiling them. Again make sure your folder c:\javatemp\hourstracker has been spelled as HoursTracker. Java is case sensitive and folder names in different cases create problems. So, rename "c:\javatemp\hourstracker" to "c:\javatemp\HoursTracker" because your package name in all classes is "HoursTracker". Then compile your class as:
javac -classpath c:\javatemp c:\javatemp\HoursTracker\
Hopefully, it will work.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us