Running Ubuntu 12.04
I have added to PATH: /home/jeffrey/jdk1.6.0_43/lib
I am attempting to build from source using Make:
make -j16
But encounter the error:
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
Can anyone explain to me why Make cannot find tools.jar
?
EDIT
JAVA_HOME=/home/jeffrey/jdk1.6.0_43/bin/java
Determined by entering env
command into the shell. Furthermore, this is set for all users in the etc/profile
Additionally:
jeffrey@jeffrey-Satellite-M645:~/WORKING_DIRECTORY$ java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
jeffrey@jeffrey-Satellite-M645:~/WORKING_DIRECTORY$
JAVA_HOME=/home/jeffrey/jdk1.6.0_43
. Logged off/on - still not able to find tools.jar – Juniorjuniority/home/jeffrey/jdk1.6.0_43/lib
– Juniorjuniority/etc/profile
is not enough; that merely sets the variable for the local process (make or the shell). You mustexport
it, or the value is not passed to any commands that make or the shell might invoke (likejava
). Try addingexport JAVA_HOME
to your makefile and/or/etc/profile
. – Cochleamake
can't, then you know the issue is with your translation of the command into your makefile. – Cochlea