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:

set the classpath at the time of running the class

Posted by Kishori Sharan on January 25, 2002 at 8:28 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



Replies:

Sponsored Links



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