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

Specifying the Java virtual machine
Here is a typical Eclipse command line: 

eclipse -vm c:\jdk1.4.2\jre\bin\javaw

Tip: 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.XXMaxPermSize
256M

--launcher.XXMaxPermSize
256m

// 改为

--launcher.XXMaxPermSize
128M

--launcher.XXMaxPermSize
128m

 

posted @ 2014-02-27 21:45  残星  阅读(2434)  评论(0编辑  收藏  举报