当前位置: 代码迷 >> Eclipse >> eclipse 起动不起来(不能创建VM)
  详细解决方案

eclipse 起动不起来(不能创建VM)

热度:43   发布时间:2016-04-23 01:58:22.0
eclipse 启动不起来(不能创建VM)

eclipse?3.7.0

?

在这篇文章中,有以下描述:

?

Specifying the Java virtual machineHere is a typical Eclipse command line: eclipse -vm c:\jdk1.4.2\jre\bin\javawTip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.To create a Windows shortcut to an installed Eclipse:Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu. Select the shortcut and edit its Properties. In the Target: field append the command line arguments. Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)

?

意思是指定自己的jvm,按照上面,在eclipse.ini的开头加上:

?

-vm$JAVA_HOME\bin\javaw.exe // win下是"\"

?

或者将

?

?

--launcher.XXMaxPermSize256M--launcher.XXMaxPermSize256m// 改为--launcher.XXMaxPermSize128M--launcher.XXMaxPermSize128m
  相关解决方案