zoukankan      html  css  js  c++  java
  • Failed to create the Java Virtual Machine.问题的解决

    运行Eclipse,出现了"Failed to create the Java Virtual Machine."错误:

    解决的办法是在Eclipse的解压目录下找到eclipse.ini文件,修改其中的参数。

    修改前的eclipse.ini文件:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
    -product
    com.android.ide.eclipse.adt.package.adtproduct
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -XX:MaxPermSize=128m
    -Xms256m
    -Xmx1024m

    修改后的eclipse.ini文件:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
    -product
    com.android.ide.eclipse.adt.package.adtproduct
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -XX:MaxPermSize=128m
    -Xms256m
    -Xmx256m

    把-Xmx从1024m改到256m以后就可以正常运行了。

    各参数含义:

    -XX:MaxPermSize:JVM允许的非堆内存的最大值

    -Xms:JVM初始分配的堆内存

    -Xmx:JVM允许分配的最大堆内存

  • 相关阅读:
    IDEA安装步骤
    记录常用网站
    IDEA解决中文乱码问题
    使用IDEA 中 实现springboot 热部署 (spring boot devtools版)
    Springboot学习
    写文档步骤
    some untracked working tree files问题解决
    利用mybatis-generator自动生成代码
    Java实现打印功能
    sql语句大全
  • 原文地址:https://www.cnblogs.com/mstk/p/4311864.html
Copyright © 2011-2022 走看看