我想在 Eclipse 中设置 Maven。如果我设置选项
-vm
C:\jdk1.7.0_45\bin\javaw.exe
在 eclipse.ini 中,我的 Eclipse 不再启动。该路径绝对是正确的,我在互联网上的不同来源上看到了这样的条目。我的完整配置如下:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-vm
C:\jdk1.7.0_45\bin\javaw.exe
最佳答案
输入 2 行:
-vm
C:\jdk1.7.0_45\bin\javaw.exe
在-vmargs
选项之前。
这是因为 -vmargs
之后的任何内容都会被视为参数。
关于java - Eclipse + Maven -> eclipse.ini,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20935872/