码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-06-23 12:37:53      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:

当我在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-openjdk-i386/lib/tools.jar

标签:

原文地址:http://www.cnblogs.com/fsong/p/5610276.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!