Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Windows XP how to set path?

  Asked By: Glenn    Date: Aug 30    Category: Java    Views: 817
  

How do i stop an error like this?
"" Exception in thread "main" java.lang.NoClassDefFoundError: DriveThorugh""

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Tracy Myers     Answered On: Aug 30

You can either add it to your commandline, or you can go to the Control
Panel -> System -> Advanced -> Environment Variables and add it permenatly.

 
Answer #2    Answered By: Vonda Ramirez     Answered On: Aug 30

You can use "set classpath="...or use a batch file to override your java
command to send the classpath:

java -cp "c:\my\classpath\" DriveThrough

Remember also that java  will not load your class file if the package is set
to something...you'll need to call it as "My.DriveThrough" or similar. That
is a common mistake I often make when running on command line.

 
Answer #3    Answered By: Bach-yen Nguyen     Answered On: Aug 30

Send me the class that does it and let me figure it
out

 
Answer #4    Answered By: Lurline Fischer     Answered On: Aug 30

Just Right click on MyComputer After clicking u will see a Frame in frame there
is a option Advanced just click on it.

in Advanced there is a button named Environment Variables just Click on this .

After clicking u will see another Frame will Appe...

then Go to System variables then select Path afther this click on edit button.

the another Box Will appe...... in the secont field if something in this field
then put ;

this and after it put your java  Path ok.

then just simple click on ok ok ok.

 
Didn't find what you were looking for? Find more on Windows XP how to set path? Or get search suggestion and latest updates.




Tagged: