Make找不到tools.jar [英] Make cannot find tools.jar
本文介绍了Make找不到tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行Ubuntu 12.04
Running Ubuntu 12.04
我已添加到PATH: /home/jeffrey/jdk1.6.0_43/lib
I have added to PATH: /home/jeffrey/jdk1.6.0_43/lib
我正在尝试使用Make来源构建:
I am attempting to build from source using 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
?
Can anyone explain to me why Make cannot find tools.jar
?
编辑
JAVA_HOME=/home/jeffrey/jdk1.6.0_43/bin/java
通过输入<确定 env
命令进入shell。此外,这是为 etc / profile
Determined by entering env
command into the shell. Furthermore, this is set for all users in the 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$
推荐答案
设置 ANDROID_JAVA_HOME
环境变量到JDK路径,修复了这个错误。
Setting the ANDROID_JAVA_HOME
environment variable to JDK path, fixes this error.
我找到了答案这个SO帖子。
这篇关于Make找不到tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文