Making classpath stay put

megavan

Disciple
Everytime I set classpath (using set classpath command)via command prompt it remains set only as long as that instance of cmd is running. But when I close cmd and open it again and then echo the classpath I get nothing. How do I remedy this? Also, I don't want to set it via control panel since I'm required to do it using a bat file. (I could find the classpath variable in controlpanel>system but it only had a '.' as its value. Should I change anything there?)Thanks
 
i suppose you are using win xp, if thats the case right click my computer>>Advanced tab>>Enviornment variables and there select class path entry and click edit and add your class path to it
 
Back
Top