解决方案一:
原来,是${java.home}在作怪,eclipse 没有使用 JAVA_HOME
默认,eclipse 使用 C:"windows"system32"javaw.exe 作为 JVM,当然找不到tools.jar
解决方法如下:
修改 eclipse.exe 目录下的 eclipse.ini 指定vm,
openFile -vm D:/waen-devenv/java/jdk1.6.0_17/bin/javaw.exe --launcher.appendVmargs -vmargs -Duser.name=*** -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m
路径的分隔符。
手动配置pom.xml,添加一个dependency如下:
<dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <scope>system</scope> <systemPath>${JAVA_HOME}/../lib/tools.jar</systemPath> </dependency>
或者:
首先,查看错误列表windows->Show View->Problems,在有以上问题的同时,还会出现该错误。
The container 'Maven Dependencies' references non existing library 'C:\Documents and Settings\DELL\.m2\repository\com\sun\tools\1.5.0\tools-1.5.0.jar'
大致说:找不到该tools-1.5.0.jar。
所以将C:\Program Files\Java\jdk1.6.0_10\lib\目录下的tools.jar拷贝到C:\Documents and Settings\DELL\.m2\repository\com\sun\tools\1.5.0\目录下,并将tools.jar改名为tools-1.5.0.jar,并在pom.xml中作如下配置:
<dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0</version> </dependency>
最后:
在执行eclipse中执行maven 的package命令时可能也会报出com.sun:tools:jar:1.5.0 找不到,
很有可能是在eclipse中的jdk路径你配置的是jre的路径,在jre路径中是没有tools.jar这个jar报的所以需要修改一下。
window->preferences->java->install JRES 修改成jdk的目录,就ok了
摘自:
http://blog.csdn.net/jazz2013/article/details/8596198
http://xingda1989.iteye.com/blog/1486966
相关推荐
Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0问题解决 ojdbc包pom.xml出错 <!-- oracle数据库驱动 --> <groupId>com.oracle</groupId> <artifactId>ojdbc6 <version>11.2.0.1.0 1.首先确定你...
在maven中配置的阿里云仓库无法下载com.aspose:aspose:jar:19,所以自己找的资源,很麻烦,为了方便兄弟们给你们了。
解决maven项目找不到tools-1.8.0.jar的问题,缺失tools-1.8.0.jar包
缺少jar包 Description Resource Path Location Type Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1 pom.xml Maven Dependency Problem jmxtools-1.2.1.jar
Description Resource Path Location Type Missing artifact com.sun.jmx:jmxri:jar:1.2.1 pom.xml /eshop-storm line 2 Maven Dependency Problem
赠送jar包:mybatis-paginator-1.2.15.jar; 赠送原API文档:mybatis-paginator-1.2.15-javadoc.jar; 赠送源代码:mybatis-paginator-1.2.15-sources.jar; 赠送Maven依赖信息文件:mybatis-paginator-1.2.15.pom;...
Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update ...
1. 解压文件得到:jta-1_0_1B-classes.zip 2. cmd进入zip文件所在目录 ...mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
主要介绍了解决java maven项目找不到jconsole-1.8.0.jar和tools-1.8.0.jar包问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
ImpalaJDBC依赖
java8的tools包,在maven出现无法加载时可以将该包加入maven本地仓库即可解决问题
导入maven命令 mvn install:install-file -Dfile=文件路径\spire.pdf.free-2.2.2.jar -DgroupId=e-iceblue -DartifactId=spire.pdf.free -Dversion=2.2.2 -Dpackaging=jar mvn install:install-file -Dfile=文件...
Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry:jar:1.15.3: Could not find artifact io.confluent:kafka-schema-registry-client:jar:6.2.2 in maven 安装本地...
直接解压到Maven仓库的"com\artofsolving\jodconverter"这个目录下; 如有不明,访问这篇我写的博客; https://blog.csdn.net/qq_39403734/article/details/82020309 物超所值;
赠送jar包:org.eclipse.jgit-5.10.0.202012080955-r.jar; 赠送原API文档:org.eclipse.jgit-5.10.0.202012080955-r-javadoc.jar; 赠送源代码:org.eclipse.jgit-5.10.0.202012080955-r-sources.jar; 赠送Maven...
maven编译时报找不到这两个jar...jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact com.sun.jdmk:...
Maven更新问题 今天Maven在更新的时候发现... http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ http://jcenter.bintray.com/ central alimaven aliyun maven htt
maven jar包依赖 com.ckfinder:ckfinder:jar:2.3
赠送jar包:org.eclipse.jgit-5.10.0.202012080955-r.jar; 赠送原API文档:org.eclipse.jgit-5.10.0.202012080955-r-javadoc.jar; 赠送源代码:org.eclipse.jgit-5.10.0.202012080955-r-sources.jar; 赠送Maven...
赠送jar包:jsonassert-1.5.0.jar; 赠送原API文档:jsonassert-1.5.0-javadoc.jar; 赠送源代码:jsonassert-1.5.0-sources.jar; 赠送Maven依赖信息文件:jsonassert-1.5.0.pom; 包含翻译后的API文档:jsonassert...