有多种解决方案:
方法1
1. 打开eclipse安装目录下的ecplise.ini (例如d:\eclipse)
2. 找到 -vmargs, 替换为 -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe" 或者删除这一行.
方法2
1. 为eclipse.exe创建一个快捷方式
2. 在快捷方式上右键, 打开属性对话框
3. 在目标栏中, 在 d:\eclipse\eclipse.exe 后面添加 -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe", 保存
方法3
1. 打开eclipse安装目录下的ecplise.ini (例如d:\eclipse)
2. 找到 "–launcher.XXMaxPermSize”. 删掉这行或者将大小从512m改为256m后保存
1st Method
1. Open the ecplise.ini file which is located in the eclipse installation folder. (i.e in our example : d:\eclipse)
2. Find & Replace the line -vmargs with -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe" OR just remove the line -vmargs and save it . Now the problem is solved
2nd Method
1. Create a desktop shortcut of the eclipse.exe
2. Right click on the shortcut and select properties.
3. Now the following dialog box will open.
4. In the target textbox already d:\eclipse\eclipse.exe will be there. Now replace with D:\eclipse\eclipse.exe -vm "C:\Program Files\Java\jdk1.6.0_34\bin\javaw.exe"
3rd Method
1. Open the ecplise.ini file
2. It has some of add on configuration . Find the line "–launcher.XXMaxPermSize”. Now remove the the dafault value 256m and save it.