运行 Ubuntu 12.04
我已添加到 PATH:/home/jeffrey/jdk1.6.0_43/lib
我正在尝试使用 Make 从源代码构建:
make -j16
但是遇到错误:
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
谁能向我解释为什么 Make 找不到tools.jar
?
编辑
JAVA_HOME=/home/jeffrey/jdk1.6.0_43/bin/java
通过在 shell 中输入env
命令来确定。此外,这是为所有用户设置的etc/profile
此外:
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$