System.getEnv("FOO") == "FOOVALUE"
netbeans 6.7+ –
Right click Project
- ->Properties
->Actions
->Run project
->Set Properties: Add
Env.FOO=FOOVALUE
Note: You can apply the same technique on other configurations and other actions like Debug project