• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath

 
Sharda Vajjhala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can someone tell me how to set Classpath variable on NT? I need to set this for my java packages to work, but I don't know how to do it. I can see that there is a PATH environment variable. When I set the CLASSPATH as a user variable(using Control Panel->System settings), then when I go to DOS prompt and type Classpath, it gives an error message "the name specified is not recognized....etc etc"
thanks
Sharda
 
Greg Brouelette
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're in a DOS window and you want to add it just for that session you can type (for example):
set classpath=.;C:\Dev_Projects\myjava
This will put C:\Dev_Projects\myjava AND whatever directory you are currently in (the dot) into teh classpath.
If you need to do this permanently then do this:
Right click the "My Computer" desktop icon and select "Properties". Select the "Advanced" tab and then the "Environment Variables".
Click one of the "New" buttons (depending on if youwant to add for this user or all users) and in the "Variable Name" field type "CLASSPATH". In the "Variable Value" field type your classpath.
Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic