File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes yet again - classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "yet again - classpath" Watch "yet again - classpath" New topic
Author

yet again - classpath

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
I am so utterly fed up having to ask classpath questions (due to my own memory loss or stupidity)but here I go again. On an NT machine, if I change the classpath settings under Control Panel->System->Environment, does this change it for everything? If I then got to my dos prompt can I assume that the classpath update is now included here? How do I look up classpath from the dos prompt and see all those same settings I see under the Control Panel?
Thanks
Paul
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
Originally posted by Paul Keohan:
I am so utterly fed up having to ask classpath questions (due to my own memory loss or stupidity)but here I go again. On an NT machine, if I change the classpath settings under Control Panel->System->Environment, does this change it for everything? If I then got to my dos prompt can I assume that the classpath update is now included here? How do I look up classpath from the dos prompt and see all those same settings I see under the Control Panel?
Thanks
Paul


Once you set any Enviroment Variables in Control Panel->System->Environment just go to a dos prompt and type set this will show you all Enviroment Variables or just type echo %name% That will take care of it.


Sun Certified Programmer on the Java 2 Platform
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
if I change the classpath settings under Control Panel->System->Environment, does this change it for everything?
In my experience, yes - more or less. If you had a dos prompt open before you adjusted the environment variable, the command prompt instance doesn't recognize the new setting - you have to close it and open a new one.
How do I look up classpath from the dos prompt and see all those same settings I see under the Control Panel?
As suggested, or you could type set classpath without actually specifying a new value and just press enter.
Good Luck.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I am so utterly fed up having to ask classpath questions (due to my own memory loss or stupidity)but here I go again.
Don't be too surprised or disappointed if this isn't the last time that you have a question about the classpath setting.
 
Don't get me started about those stupid light bulbs.
 
subject: yet again - classpath
 
Similar Threads
Exception in thread "main"
Classpath
java -version
problem executing executable jar file
How do I see my classpath?