之前Eclipse是可以正常使用的,好久没用再启动打开直接提示【Failed to create the Java Virtual Machine】
网上百度了一下提示内容,找到解决方法如下:
在Eclipse目录中找到eclipse.ini这个文件,以记事本或者UE打开
-startup
lipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
lipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-product
lipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
<span style="color:#330033;">256M</span>
-showsplash
lipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-quiredJavaVersion=1.6
-Xms40m
-Xmx512m
将以上内容中256替换为128,512替换为256-->结果如下
-startup
lipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
lipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-product
lipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
lipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-quiredJavaVersion=1.6
-Xms40m
-Xmx256m
保存更改后再启动就没有问题了。
本文发布于:2024-01-31 15:45:35,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170668713529616.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |