打开Eclipse时为什么会出现错误对话框?

时间:2017-08-10 05:55:46

标签: eclipse

error dialog 打开Eclipse时,会打开一个对话框,这是对话框中显示的消息:

JVM terminated. Exit code=1
/usr/bin/java
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-jar /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86_64
-launcher /opt/marseclipse/eclipse
-name Eclipse
--launcher.library /opt/marseclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
-startup /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata c78010
-data /root/workspace2
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-import /root/workspace2/ut
-vm /usr/bin/java
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-jar /opt/marseclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

请指导!

2 个答案:

答案 0 :(得分:0)

好吧所以似乎存在内存问题。你可以去配置文件并将 Xms256m 大小增加到512或1024,这对你有用。堆内存即 Xms256m < / strong>取决于您对OS的物理内存。因此会相应更改。

您可以通过运行要自定义的配置并打开选项卡Arguments并在VM参数部分中添加-Xmx或Xms来更改它

答案 1 :(得分:0)

由我自己解决。我通过调用Runtime.getRuntime.exec()从第一个工作台运行eclipse两次(第一次将项目导入新工作台,第二次打开新工作台)。我忘了做process1.waitFor(),所以新工作台打算同时运行两次,这是根本原因。