On Unix, in the netbeans installation directory (we will call it $ NETBEANS), there is a directory etc.
$ NETBEANS / etc / netbeans.conf can be changed to add things to the PATH or set other environment variables for Netbeans instances. For example, I set some env variable for my Glassfish launches.
I can not say for Windows.