java启动失败Could not create the Java virtual machine

求解这样改如何是好?

eclipse启动时弹出Failed to create the Java Virtual Machine 是怎么回事?怎么解决?
JAVA虚拟机报错. 是你的eclipse版本和虚拟机不兼容导致.
解决方法:
打开eclipse所在目录,找到 eclipse.ini文件,将其修改为如下内容,即可启动Eclipse

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx256m追问

不行,没有哈

追答

没有就创建一个eclipse.ini文件。。。

追问

如何创建呢

追答

这个不会??

好吧,

    查看是否隐藏文件扩展名,在当前目录最上面的工具栏中:工具(T)-->文件夹选项-->查看--->隐藏已知文件类型的扩展名(不打钩)。

    在Eclipse安装目录下,右键新建一个文本文档。

    打开该文本文档,将以下内容复制到里面(主要是把XXMaxPermSize改成128)

    -startup
    plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    128M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    128m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx256m

    然后保存,右键重命名为eclipse.ini,重启即可。

    如果你的jdk配置都有问题的话,还要配好jdk环境变量。(这个书上网上都有)

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答