当我在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”

相关文章:

  • 2021-06-22
  • 2021-04-01
  • 2021-12-16
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-18
  • 2021-11-27
  • 2021-12-13
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案