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

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

發佈了19 篇原創文章 · 獲贊 1 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章