构建 Gradle 项目时出现以下错误,但 SpringToolSuite 运行良好
Error occured during the initialization of VM
Could not reserve enough space for object heap
Error: Could not create Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.
我有 4GB 的 RAM,我的操作系统是 64 位,我最近将 Java 从 1.6 升级到 1.7
这是我的 sts.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx768m
-XX:MaxPermSize=1024m
我已经尝试了各种变体-Xms
并且-Xmx
仍然是相同的错误。