Environment variables

Discussion in 'Java' started by winter2009, May 22, 2009.

  1. winter2009

    winter2009

    Joined:
    May 22, 2009
    Messages:
    1
    How to really set an environment variable in java? I have tried setProperty which only set the system property for the current java project envirnment. I also tried the processBuilder, but it also only generate a copy of the environment variables and make changes on the copy. How can I really set a new environment variable or change the current environment variable in java program for windows system so that I can use it outside the java project?
     
    winter2009, May 22, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Kasten

    Setting Environment Variables

    Rick Kasten, Jul 7, 2004, in forum: Perl
    Replies:
    2
    Views:
    598
    Howard
    Jul 7, 2004
  2. =?Utf-8?B?YnNmbDQ0?=
    Replies:
    0
    Views:
    488
    =?Utf-8?B?YnNmbDQ0?=
    May 12, 2004
  3. darrel
    Replies:
    1
    Views:
    406
    Scott Allen
    Oct 4, 2004
  4. marcwentink@hotmail.com
    Replies:
    5
    Views:
    660
  5. tjumail@gmail.com
    Replies:
    9
    Views:
    961
    tjumail@gmail.com
    Mar 23, 2008
Loading...

Share This Page