Environment Variables

G

Guest

I've attempted to set my environment variable for javac as c:\program
files\java\jdk1.5.0_06\bin but javac still doesn't work from the command
prompt. I've tried adding javac and javac.exe to the end of that but neither
will work. I've added this in the users variables. Is there something else
that should be done to get this to work?
 
W

Wesley Vogel

HOW TO Manage Environment Variables in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;310519

Setting environment variables
http://www.microsoft.com/resources/...all/proddocs/en-us/environment_variables.mspx

To add or change the values of environment variables
http://www.microsoft.com/resources/...dm_advancd_environmnt_addchange_variable.mspx

Understanding environment variable precedence in Windows XP
http://techrepublic.com.com/5100-10590_11-5630303.html

Environment Variables in Windows XP
http://vlaurie.com/computers2/Articles/environment.htm

Default environment variables under windows
http://www.adp-gmbh.ch/win/misc/environment_variables.html

Environment Variable Processing Order in Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;185652

Environment Variables
http://www.wilsonmar.com/1envvars.htm

Environment Variables in Windows NT
http://support.microsoft.com/kb/100843/EN-US/

How to propagate environment variables to the system
http://support.microsoft.com/default.aspx?scid=kb;en-us;104011

Managing NT Environment Variables
http://www.windowsitpro.com/Articles/Index.cfm?ArticleID=5379

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

David H. Lipman

From: "Zach" <[email protected]>

| I've attempted to set my environment variable for javac as c:\program
| files\java\jdk1.5.0_06\bin but javac still doesn't work from the command
| prompt. I've tried adding javac and javac.exe to the end of that but neither
| will work. I've added this in the users variables. Is there something else
| that should be done to get this to work?

If you set an environmental variable in a Command Prompt (CMD.EXE or COMMAND.COM) they are
daughter processes of the command interpreter and only daughter processes executed from them
will inherit the environmental variable. The parent process, the OS kernel, will NOT
inherit the environmental variable.

Right Click on "My Computer" --> Properties --> advanced --> environmental variables
Set the variable in the USER (you) or the SYSTEM (all users).
 
G

Guest

I did go through the systems - advanced - environmental variables. However,
after that was done, it still wouldn't work in the command prompt.
 
D

David Candy

What do you mean it doesn't work. Is this some technical thing. Perhaps you are unsuited to something like programming.
 
W

Wesley Vogel

Did you add c:\program files\java\jdk1.5.0_06\bin to the PATH variable?

Open a command prompt, type: path and hit Enter to see if that is
listed.

To see if you added c:\program files\java\jdk1.5.0_06\bin to some other
variable, type: set in a command prompt.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

There's always something. Keep having fun. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top