Setting Environment Variables for NetBeans

If you use NetBeans IDE to build an application which reads environment variable, you will have to do these settings in your IDE. There is no GUI to set such variables in NetBeans while Eclipse provides you a “Run Configuration Dialog”. So just add the declaration in your netbeans.conf.

It is highly recommended to copy the configuration file to your home directory before you edit it.

cp -r /usr/local/netbeans-6.8/etc ~/.netbeans/6.8/

And append this line:

export YAN_RESOURCE=/home/sun/work/yan-resource

Then restart your IDE, it works. You can test/build/run your application with the environment variable $YAN_RESOURCE inside NetBeans IDE,

This entry was written by Sunng , posted on Monday December 28 2009at 10:12 pm , filed under 把戏 and tagged , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word