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.

Bug 226718 - Include path does not take environment variables anymore
Summary: Include path does not take environment variables anymore
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-26 14:57 UTC by chila
Modified: 2016-04-01 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chila 2013-02-26 14:57:33 UTC
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.
Comment 1 chila 2013-02-26 15:05:40 UTC
it did, mine bad, sorry, got confused
Comment 2 fse 2016-04-01 09:53:54 UTC
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
Comment 3 fse 2016-04-01 10:04:28 UTC
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.)