Ubuntu 14.04 & ant: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openj

Posted wakasann

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 14.04 & ant: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openj相关的知识,希望对你有一定的参考价值。

当我在vagrant + ubuntu 14.04,jenkins ant执行项目的build.xml时,提示:

[workspace] $ ant -file build.xml
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-i386/lib/tools.jar
Buildfile: /var/lib/jenkins/jobs/ibeauty-to-dev/workspace/build.xml

解决方法是安装openjdk-7-jdk 包,如:

sudo apt-get install openjdk-7-jdk

 

参考链接:Ubuntu 12.04.1 LTS & ant: Resolve “Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar”

以上是关于Ubuntu 14.04 & ant: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openj的主要内容,如果未能解决你的问题,请参考以下文章

U盘安装Ubuntu 14.04 LTS

Windows7下U盘安装Ubuntu14.04双系统

Windows7下U盘安装Ubuntu14.04双系统

Windows 7 & Ubuntu 14.04完美双系统安装及系统引导配置----校园网Mentohust配置

win7下装ubuntu14.04双系统

U盘安装Ubuntu14.04 server版 提示无法挂载cd-rom数据的解决办法