Results 1 to 7 of 7
- 11-30-2010, 05:58 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 16
- Rep Power
- 0
Environment variable shows different from editable value
I am trying to get Java SE to work for the first time. When I do My Computers/Properties/Advanced/Environment Variables I find that the value for Path which is displayed is not the same as the one that comes up for editing.
It says in the System Variable list on the Environment Variable screen:
System Variables:
Path C:\windows\system32;C:\windows;C:\...
Then when I click Edit, the popup says
Variable name:
Path
Variable value:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\sy stem32\WBEM;C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\Java\jdk1.6.0_22\bin
I don't know how to proceed if the edit value is different from the value. I'm using Windows XP Professional.
- 11-30-2010, 06:20 PM #2
it looks as if here the displayed value in the control panel widget there is resolving the %variables% to their values for display, but for editing it is showing the variable name ?
- 11-30-2010, 06:38 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 16
- Rep Power
- 0
- 11-30-2010, 06:59 PM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
I see the same thing on my computer - I've never noticed that before...
What you've got should be OK. The only thing different about your setting and the one on this computer is that mine has quotes around any path with spaces in it. But the best thing to do to test your setup is to try it out. Post if you have problems.
- 11-30-2010, 09:37 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 16
- Rep Power
- 0
Thanks! It compiled with 1 error. I had put the program in a separate folder which was the problem but I was confused about the all pointing that you have to do and even changed some variables unnecessarily.
- 11-30-2010, 11:15 PM #6
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
I'm glad you've got it working the way you want.
It's quite common for people to get into a variable setting frenzy when they begin using the Java compiler. Basically the PATH variable is good the way you have it (as you've found), and the CLASSPATH variable is best left alone (unless you want to delete it).
If you get into trouble figuring out the command to compile when the source is in its own folder(s) there is a good javac "man" page to consult (and one for java) If these don't help you can always post here.
- 12-01-2010, 12:47 AM #7
Member
- Join Date
- Nov 2010
- Posts
- 16
- Rep Power
- 0
Similar Threads
-
how to sum the values
By baktha.thalapathy in forum New To JavaReplies: 2Last Post: 05-26-2010, 10:20 AM -
Need help with Max or min values!
By rasmus07 in forum New To JavaReplies: 13Last Post: 03-03-2010, 05:04 PM -
HashMap contains all values but doesn't show all values
By xcallmejudasx in forum New To JavaReplies: 3Last Post: 05-10-2009, 11:35 PM -
Retaining DB values as well as Dynamically generated Values.. Help Needed !
By rajivjha in forum Advanced JavaReplies: 0Last Post: 05-22-2008, 10:53 AM -
Accessing boolean Values of another values in one class.
By a_iyer20 in forum Advanced JavaReplies: 4Last Post: 04-15-2008, 01:04 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks