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.


Thanks Kishori, and everyone who helped! (eom)

Posted by Hiran on January 25, 2002 at 11:42 PM

> Hello Hiran,
> You need to set the classpath when you run a java class. In your case just type:
> java -cp c:\javatemp HoursTracker.HoursTrackerGUI and it will work. Alternatively, you can set c:\javatemp in your classpath permanenlty in autoexec.bat in win95/98 and control panel-> system -> Environment tab in win NT. I have also sent you a brief discussion on compiling and running a java class which will help you understanding javac and java and classpath.
> Thanks
> Kishori


Sponsored Links

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