title: How can I define environment variables for a Java project in NetBeans?
body: <p>I need to define environment variables for my project since I will eventually want to deploy it to Heroku, or any other PaaS. What I am having trouble with is run the application from the NetBeans IDE with my environment variables.</p>
  
  <p>Where can I enter them so I can test them? I use environment variables for MongoDB URI, different API keys, etc.</p>
  
  <p><strong>Edit:</strong> I am using OSX 10.10.2 with NetBeans 7.4.</p>
  
  <p>I tried looking at <a href="https://stackoverflow.com/questions/11823233/how-to-set-environment-variable-in-netbeans">this</a> discussion but my version of NetBeans lacks the Set Properties: Add in the Run dialog. </p>