This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Similar to issue 34802. I have imported an Eclipse project that needs some specific environment variables to run. To that end, I have overridden -init-macrodef-java and init-macrodef-debug targets in build.xml and added some <env> entries to them, as explained on http://wiki.netbeans.org/FaqEnvVarsDuringRun . When I run the project through activating the run target in build.xml, it works as expected. However, when I create a shortcut to this target on the toolbar, the overridden targets in build.xml are ignored and an error occurs because of missing environment variables. Expected behavior is that the shortcut to a target works identical to directly calling the target.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss