The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

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.

Message:

Thanks again...it compiled fine, but it won't run

Posted by Hiran on January 25, 2002 at 5:15 PM

When I type in


java c:\javatemp\hourstracker\HoursTrackerGUI
or
java -classpath c:\javatemp\hourstracker\HoursTrackerGUI

there was an error message:

Exception in thread "main" java.lang.NoClassDefFoundError: c:\javatemp\hourstracker\HoursTrackerGUI

Could it be the fact that the directories are all lowercase, when I named them originally using a mix of upper and lower case?
Hiran

> In your HoursTrackerGUI class, you misspelt your package.

> Instead of HoursTracker you have a hourstracker.

> Gues it should it work now!






Replies:

Sponsored Links



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