Eclipse maven has following error:
Missing artifact com.sun:tools:jar:1.5.0
Eclipse use "C:\windows\system32\javaw.exe" as default JVM, of course cant find tools.jar.
Solution I:
Modify eclipse.ini which in the eclipse.exe directory, add the following configuration:
-vm
D:\Program Files\Java\jdk1.6.0_37\bin\javaw.exe
Note:
1. -vm cannot have a space behind;
2. the first line is parameter, and the second line is the value, need to separate.
3. This configuration is in the front of the file best.
Solution II:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.home>D:\Program Files\Java\jdk1.6.0_37</java.home>
</properties>
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<values>Sun.Microsystems Inc.</values>
</property>
</activation>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/lib/tools.jar</systemPath>
</dependency>
</dependencies>
PS: here, <profiles> and <dependencies> must be sepreated, or it cant solve the problem.
分享到:
相关推荐
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,所以自己找的资源,很麻烦,为了方便兄弟们给你们了。
缺少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
Failure to transfer org.codehaus.plexus:plexus-archiver:jar:1.2 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update ...
解决maven项目找不到tools-1.8.0.jar的问题,缺失tools-1.8.0.jar包
赠送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;...
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
Maven更新问题 今天Maven在更新的时候发现... http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ http://jcenter.bintray.com/ central alimaven aliyun maven htt
导入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 安装本地...
java8的tools包,在maven出现无法加载时可以将该包加入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...
ImpalaJDBC依赖
直接解压到Maven仓库的"com\artofsolving\jodconverter"这个目录下; 如有不明,访问这篇我写的博客; https://blog.csdn.net/qq_39403734/article/details/82020309 物超所值;
java jar包 javax.media:jai_core:1.1.3.jar 用于maven下载不下来。。。
mvn install:install-file -Dfile=E:\ProgramFiles\apache-maven-3.6.1\国产数据库\oscarHibernate5.jar -DgroupId=com.stdb -DartifactId=oscarHibernate5 -Dversion=1.0 -Dpackaging=jar -Dfile:指定jar文件的...
Maven坐标:com.sun.mail:javax.mail:1.6.2; 标签:sun、mail、javax、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的...
Maven坐标:com.sun.activation:jakarta.activation:1.2.2; 标签:activation、sun、jakarta、jar包、java、中英对照文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 ...
主要介绍了解决java maven项目找不到jconsole-1.8.0.jar和tools-1.8.0.jar包问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧