How do I specify the PATH in NetBeans?

pupeno picture pupeno · Mar 31, 2010 · Viewed 14.3k times · Source

When running Ruby code on NetBeans (like when running the tests) I'm having some failures because a program is not being found. That program is installed somewhere in /opt and while for the shell I get that added to my PATH, it seems NetBeans is not getting it.

How do I specify the PATH in NetBeans?

Answer

Will Hartung picture Will Hartung · Apr 2, 2010

In Unix, in your netbeans install directory (we'll call it $NETBEANS), there's an etc directory.

$NETBEANS/etc/netbeans.conf can be changed to add things to your PATH or set other environment variables for your Netbeans instances. I set some env variable for my Glassfish launches in there, for example.

Can't say for Windows.