Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system

来源:互联网 发布:商场导航软件 编辑:程序博客网 时间:2024/04/27 23:28

Eclipse的maven:出现Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system  错误,

是因为需要jdk的tools。根本原因是没有指定javaw.exe的的位置,在eclipse.ini中用-vm指定javaw的位置就可以了。

 

下面是:

eclipse.ini中的内容:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:/Java/jdk1.6.0_02/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

原创粉丝点击