Results 1 to 7 of 7
  1. #1
    projecttoday is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default 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.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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 ?

  3. #3
    projecttoday is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    Okay. I'm trying to get javac to work. Is this correct for XP Pro?

    Quote Originally Posted by travishein View Post
    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 ?

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    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.

  5. #5
    projecttoday is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

    Default

    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.

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    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.

  7. #7
    projecttoday is offline Member
    Join Date
    Nov 2010
    Posts
    16
    Rep Power
    0

Similar Threads

  1. how to sum the values
    By baktha.thalapathy in forum New To Java
    Replies: 2
    Last Post: 05-26-2010, 11:20 AM
  2. Need help with Max or min values!
    By rasmus07 in forum New To Java
    Replies: 13
    Last Post: 03-03-2010, 06:04 PM
  3. HashMap contains all values but doesn't show all values
    By xcallmejudasx in forum New To Java
    Replies: 3
    Last Post: 05-11-2009, 12:35 AM
  4. Replies: 0
    Last Post: 05-22-2008, 11:53 AM
  5. Replies: 4
    Last Post: 04-15-2008, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •