當使用eclipse的maven:出现Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system 错误,是因为需要jdk的tools。
根本原因是没有指定javaw.exe的的位置,所以在eclipse.ini中用-vm指定javaw的位置就可以了~一定要在 [color=blue]openFile[/color] 以下加才行,在別的地方加,都會無效~
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
[color=blue]openFile[/color]
[color=red]-vm
C:/java/jdk1.6.0_21/bin/javaw.exe[/color]
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
根本原因是没有指定javaw.exe的的位置,所以在eclipse.ini中用-vm指定javaw的位置就可以了~一定要在 [color=blue]openFile[/color] 以下加才行,在別的地方加,都會無效~
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
[color=blue]openFile[/color]
[color=red]-vm
C:/java/jdk1.6.0_21/bin/javaw.exe[/color]
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
本文介绍了解决Eclipse中使用Maven遇到的“Missing indirectly referenced artifact com.sun:tools:jar:1.5.0:system”错误的方法。该问题通常由于未正确指定JDK的`tools.jar`文件路径导致。解决步骤包括在eclipse.ini文件中添加正确的`-vm`参数来指向`javaw.exe`的确切位置。
2152

被折叠的 条评论
为什么被折叠?



