By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,557 Members | 1,184 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,557 IT Pros & Developers. It's quick & easy.

Viewing and Changine Settings

P: n/a
I want to see my settings for java. How do I see the settings using set on
DOS screen??

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.

How do I change the settings like CLASSPATH

Thanks in advance

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
news wrote:
I want to see my settings for java. How do I see the settings using set on
DOS screen??

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.

How do I change the settings like CLASSPATH


CLASSPATH is an environment variable. In all versions of Windows I've
checked, it can be set through the "System" applet in the control panel.
On my system (XP Home), it's on the advanced tab, reached with a button
labeled "Environment Variables". That location might be a bit different
depending on your exact operating system.

I don't know what else you mean by "settings for Java". The classpath
is the only environment variable I'm aware of that can affect the JVM.
Some other settings are controlled by command line options on the
interpreter, and Java PlugIn properties are configured with their own
control panel applet on Windows... so there's a few more places to look
for other settings besides the classpath.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Jul 17 '05 #2

P: n/a
"news" <j@j.cm> wrote in message
news:ez****************@nwrdny03.gnilink.net...

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
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.