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.
- Add this file into project: ------------------------------------------------------------ #include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { printf("PATH=%s\n", getenv("PATH")); printf("AAA=%s\n", getenv("AAA")); return (EXIT_SUCCESS); } ------------------------------------------------------------ - Open Project Properties window for this project and go to 'Running' subcategory - Add 'AAA' and 'PATH' environment variables - Set 'AAA=ZZZ' and 'PATH=/home/sssss' - Run project ==>In gnome-terminal I see: PATH=/home/vs157455/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin AAA=(null)
It is bug same IZ89718 (http://cnd.netbeans.org/issues/show_bug.cgi?id=89718) For example I can reproduce its on sqao35 (on sqao35:2 display). If gnome-terminal just appeared, but in internal output window I've already watched "Run successful. Exit value 0.", then I have wrong environment variables. But If gnome-terminal started correctly, then I see 'PATH=/home/sssss' and 'AAA=ZZZ' in gnome-terminal
Developer note: gnome-terminal typically runs in a server mode. If I start 5 gnome-terminals the 1st one starts a persistant gnome-terminal process and the others send a message to the persistant process to open a new window. This means that the environment is usually set prior to running a program in the IDE. So the only way to fix this issue would be to pass and env file and have dorun.sh source it.
Fixed at the start of 5.5.1.
verified in 5.5.1_u1 CND build (20070808).