[OT] Re: Viewing and Changing Settings  
Author Message
Anthony Borla





PostPosted: 2003-12-14 10:16:00 Top

java-programmer, [OT] Re: Viewing and Changing Settings "news" <email***@***.com> wrote in message
news:ezLCb.1561$email***@***.com...
>
> I want to see my settings for java. How do I see the settings
> using set on DOS screen??
>

Type:

set

and press <ENTER>; you should find a number of items displayed:

PATH=...
CLASSPATH=...

>
> My problem is when I type in set and nothing shows.
> I go to the directly where java.exe is located and type
> set and nothing.
>

I find this a highly unusual situation. Ordinarily, you would have at least
a couple of environment variables displayed.

>
> How do I change the settings like CLASSPATH
>

To create a CLASSPATH enviorment variable where none exists, do:

set CLASSPATH=C:\XYZ;D:\ABC

and press <ENTER>.

To add information to an existing CLASSPATH [you can choose whether to place
it before or after existing data] do:

:: Before existing data
set CLASSPATH=%classpath%;C:\XYZ;D:\ABC

or:

:: After existing data
set CLASSPATH=C:\XYZ;D:\ABC;%classpath%

and press <ENTER>.

Note, though, this changes the settings for the current console window [i.e.
DOS Window] only - the settings are lost once you close it. For a more
permanent solution:

* Edit 'autoexec.bat' file to include the above statements - this
applies to older Windows versions

* Use the System applet in the Control Panel to edit Enviromnent
Variables [for W2K, and XP]

I hope this helps.

Anthony Borla