Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar

报出这种错误的原因是下载OpenJDK时使用命令

sudo apt-get install openjdk-6-jre-lib

这样安装后OpenJDK将会缺少lib文件夹,使用如下命令重新安装:

sudo apt-get install openjdk-6-jdk

问题解决

时间: 2024-11-04 15:45:15

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

当我在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/bui

Unable to locate tools.jar解决方法

今天在使用命令行方式构建cocos2d-x 3.8示例工程时,出现如题所示的错误提示.几经网络搜索,找到答案如下所述. 问题描述 Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib 命令行敲ant命令后提示:"Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib":

Error:gradle-resources-test:thymeleaf-in-action.main: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream

目录 Error:gradle-resources-test:thymeleaf-in-action.main: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream 背景 排除 Error:gradle-resources-test:thymeleaf-in-action.main: java.lang.NoClassDefFoundError: org/apache/tools/ant/util

在XP系统下搭建maven环境出的问题 Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\lib\tools.jar

Build errors for spider; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project spider: Compilation failureUnable to locate the Javac Co

mvn打包spring工程成jar时报Unable to locate Spring NamespaceHandler for XML schema namespace错误解决办法

有一个小工程,使用了spring,在使用maven的assembly打包成独立可执行的jar包后,在执行时报如下错误:Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace      网上对这个问题也有提及,这是assembly的一个bug.参见:http://jira.codehaus.org/browse/MASSEMBLY-360 原因是spring的多个jar包中都含

打成Jar包后运行报错 Unable to locate Spring NamespaceHandler for XML schema namespace

MAVEN项目,在IDEA中运行正常,但是把它打成jar包后再运行就会出现异常: Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.sp

intellij idea运行Android程序时报错;Unable to locate adb within SDK

环境:intellij idea15 问题:运行Android时报错Throwable:Unable to locate adb within SDK 解决方法:在SDK安装目录的\platform-tools下放入adb.exe 原因:我的adb是单独安装的,是装在SDK安装目录的tools下的.我猜测Android运行时是在SDK的platform-tools下去找adb命令的.所以我只是复制了tools下的adb.exe到platform-tools下

Eclipse错误提示:The Eclipse executable launcher was unable to locate its companion shared library.

打开Eclipse弹出错误提示:TheEclipse executable launcher was unable to locate its companion shared library. 中文意思:Eclipse可执行文件的启动器无法找到它的共享库(google告诉我的,目前的英文水平还不咱滴,正努力中) Eclipse.ini文件内容如下: -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.j

运行eclipse就提示 The Eclipse executable launcher was unable to locate its companion library. 解决方案

你试试把中文路径换掉 不行的话参考 逝去的青春的博客:Eclipse出现“The Eclipse executable launcher was unable to locate its companion shared library”错误的解决方法如下: 一.打开eclipse目录下的配置文件eclipse.ini. 二.将--launcher.library和-startup下面的路径都改为当前的正确路径. 如我的eclipse的存放路径由D:\Program Files\改为D:\,则将