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 14.04 & ant: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openj的主要内容,如果未能解决你的问题,请参考以下文章
Windows 7 & Ubuntu 14.04完美双系统安装及系统引导配置----校园网Mentohust配置