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.
Simple test scenario: - C code: #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char**argv) { printf("%s\n", getenv("AAA")); return 0; } - Call Project Properties window - Select Launchers category - Press New button - Press Add button in Environment Variables table - Type 'AAA' in left column, type '$PATH' in right column - Press OK button - Build project - Call context menu and select 'Run|Launcher1000' menu item ==> In "ProjectName (Run launcher1000)" tab I see "${PATH}" instead of real PATH value
Really I can't fix 1 test on Windows. Test creates "Subproject Application" sample (1 executable, 2 static libraries and 2 dynamic libraries). Also test creates new launcher in 'hello3lib' project. But I can't launch my launcher, because "main.exe: error while loading shared libraries: libhello3lib.dll: cannot open shared object file: no such file or directory" message appears. Into launcher I added "PATH=%PATH%;C:/.../library1.dll;C:/.../library2.dll", but IDE ignores such workaround.
fixed in enum, branch release82, changeset ee9234eee8f1
Integrated into 'main-silver', will be available in build *201703240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b9efccdba845 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #269853 In launchers user can't use environment variable value in new environment variable (transplanted from ee9234eee8f1fada6b28d992a7f3de20aa6551c6)
https://netbeans.org/bugzilla/show_bug.cgi?id=269853 Changesets: http://hg.netbeans.org/releases/rev/ee9234eee8f1 # fixed Bug #269853 In launchers user can't use environment variable value in new environment variable
Verified in netbeans-8.2-20170424.