zoukankan      html  css  js  c++  java
  • 启动Eclipse时,启不起来JVM terminated. Exit code=-1

    启动Eclipse时,启不起来JVM terminated. Exit code=-1
    出现错误了,不知道什么原因原本好好的Eclipse,今天早上出问题了,启动不起来还抛出JVM terminated. Exit code=-1,上网查了资料以后,原来好多人和我一样都有这样的问题,真是感谢前辈们了。

    Eclipse 启动不起来,出现以下错误:

    JVM terminated. Exit code=-1
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    -XX:MaxPermSize=256m
    -Djava.class.path=D:eclipse_rcpplugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
    -os win32
    -ws win32
    -arch x86
    -showsplash D:eclipse_rcp\pluginsorg.eclipse.platform_3.3.200.v200905282000splash.bmp
    -launcher D:eclipse_rcpeclipse.exe
    -name Eclipse
    --launcher.library D:eclipse_rcpplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519eclipse_1206.dll
    -startup D:eclipse_rcpplugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
    -product org.eclipse.epp.package.rcp.product
    -vm C:Program FilesJavajdk1.5.0_09in..jreinclientjvm.dll
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    -XX:MaxPermSize=256m
    -Djava.class.path=D:eclipse_rcpplugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar

    网上搜索->解决此类错误的方法有以下几种:

    首先:eclipse 安装路径下的eclipse.ini的内容如下:

    -startup

    plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar

    --launcher.library

    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519

    -product

    org.eclipse.epp.package.jee.product

    --launcher.XXMaxPermSize

    256M

    -showsplash

    org.eclipse.platform

    --launcher.XXMaxPermSize

    256m

    -vmargs

    -Dosgi.requiredJavaVersion=1.5

    -Xms40m

    -Xmx512m

              第一种: eclipse.ini中内存设置过大的问题,修改了一下,256m改成128m,把512m   改为 256m,即可。

                            原因:大内存的配置导致的。

              第二种:在eclipse.ini 中,增加了如下两行后,问题解决:
                              -vm
                             D:/Program Files/Java/jdk1.6.0/bin/javaw.exe 

                             其中javaw.exe是我的JDK安装路径。同时,完整的eclipse.ini如下

                              -startup
                              pluginsorg.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
                             -showsplash
                             org.eclipse.platform
                             --launcher.XXMaxPermSize
                             512m
                             -vm
                              C:Javajdk1.6.0_10injavaw.exe
                             -vmargs
                             -Xms40m
                            -Xmx256m
                            -Djava.net.preferIPv4Stack=true

              第三种: 删除eclipse 安装目录下的eclipse.ini 文件,重新启动 eclipse.exe 即可。


    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/CaidChen/archive/2010/02/22/5315833.aspx

  • 相关阅读:
    Scrapy 概览笔记
    Python 依赖版本控制 (requirements.txt 文件生成和使用)
    Python 虚拟空间的使用
    macOS 所有版本 JDK 安装指南 (with Homebrew)
    鉴权那些事
    Java 位运算符和 int 类型的实现
    ASP.NET Core 入门教程 5、ASP.NET Core MVC 视图传值入门
    如何做好一次知识或技术分享
    ASP.NET Core 入门教程 4、ASP.NET Core MVC控制器入门
    ASP.NET Core 入门教程 3、ASP.NET Core MVC路由入门
  • 原文地址:https://www.cnblogs.com/gaoguofeng/p/6919970.html
Copyright © 2011-2022 走看看