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.
In the the project's Properties -> C++ compiler --> Include Directories text label, when an environment variable ${var} is put, it does not take it anymore. In the previous version of the IDE, the 7.2, it did. Now all my projects wont compile anymore, unless I change all of them to the actual values which is non-portable & very inconvenient. This is very bad.
it did, mine bad, sorry, got confused
Nice to hear that this feature should work, but it does not with Netbeans 8.1 under Windows 7:For a JNI project I need to include
Sorry, Bugzilla has eaten a part of my last comment, here it is again: For a JNI project I need to include jni.h. The project compiles with two additions in the "Include Directories" field in the C++ project properties: C:/Programme_FSE/Entwicklung/Java/jdk1.8.0_77/include C:/Programme_FSE/Entwicklung/Java/jdk1.8.0_77/include/win32 To be independent from the JDK's location I defined the environment variable jdkhome=C:\Programme_FSE\Entwicklung\Java\jdk1.8.0_77 and tried - after rebooting the system - to replace the first of the two paths by the following: %jdkhome%/include $jdkhome/include ${jdkhome}/include In all cases compiliation failed with the fatal error "jni.h: No such file or directory"; even when using backslashes instead of the slashes. ("echo %jdkhome" in the command window delivers the expected result of course.)