[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] $JAVA_HOME has wrong value in make target
|
Hey Everyone,
I have a standard C++ project. Everything is fine except when I try to build
it(using make) under exclipse. I can run make from the command line without
any problem.
Here is the the part of the make file that is failing:
INCLUDE += -I $(JAVA_HOME)/include
INCLUDE += -I $(JAVA_HOME)/include/linux
This is output in the console when I run this make target
make -k all
g++ -pthread -I /opt/blackdown-jre-1.4.2.01/include -I
/opt/blackdown-jre-1.4.2.01/include/linux
As you can see $JAVA_HOME is set to /opt/blackdown-jre-1.4.2.01 which is
wrong!!!
But when I type "echo $JAVA_HOME" from the command line I get
/usr/java/jdk1.5.0_02 which is correct
When I go to window->preferences->java->installedJREs the only installed jre is
/usr/java/jdk1.5.0_02
Why is the make target in CDT/Eclipse using /opt/blackdown-jre-1.4.2.01? Where
does it get this value? How do I change it?
Thanks for your help.
Cheers
J.O.