初始化VM时发生错误(java / lang / NoClassDefFoundError:java / lang / Object) [英] Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)

查看:275
本文介绍了初始化VM时发生错误(java / lang / NoClassDefFoundError:java / lang / Object)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装Java来使用Eclipse(我按照所有说明来安装Java和Eclipse),但是由于我的某些错误配置,我的Eclipse没有启动。我不知道为什么它不适合我。



Eclipse安装:




  • 中提取Eclipse C:\eclipse

  • 创建了一个到目标桌面的快捷方式 C:\eclipse\eclipse.exe

  • 当我尝试运行Eclipse这个快捷方式,我看到下面的Eclipse启动屏幕一秒钟,它消失了。 Eclipse没有启动。





    JAVA安装:


    1. 已安装JDK在 C:\Program Files\Java\jdk1.7.0_10

    2. 安装的JRE位于 C :\Program Files\Java\jre7

    环境变量配置: strong>

      JAVA_HOME = C:\Program Files\Java\jdk1.7.0_10 
    PATH = C :\Program Files\Java\jdk1.7.0_10\bin;

    我使用控制台测试了我的Java安装,并找出了这个问题,但我不知道如何修复它,我猜这是导致Eclipse不能启动。



    问题:



    解决方案

    转到Eclipse文件夹,找到eclipse.ini文件,添加以下条目(之前 -vmargs 如果存在):

      -vm 
    C:\Program Files\Java\jdk1.7.0_10\bin\javaw.exe

    保存文件并执行eclipse.exe。


    I'm trying to install Java to use Eclipse (I followed all instructions to install Java and Eclipse) but my Eclipse is not starting due to some bad configuration I guess. I can't figure out why it's not working for me.

    Eclipse Installation:

    1. Extracted Eclipse at C:\eclipse
    2. Created a shortcut to my desktop having target C:\eclipse\eclipse.exe

    When I try to run Eclipse with this shortcut, I see following Eclipse splash screen for a second and it disappears. Eclipse does not start at all.

    JAVA Installation:

    1. Installed JDK at C:\Program Files\Java\jdk1.7.0_10
    2. Installed JRE at C:\Program Files\Java\jre7

    Environment Variables Configuration:

    JAVA_HOME = C:\Program Files\Java\jdk1.7.0_10
    PATH = C:\Program Files\Java\jdk1.7.0_10\bin;
    

    I tested my Java installation using the console and figured out this issue but I don't know how to fix it, and I guess this is causing Eclipse not to start.

    Problem:

    解决方案

    Go to Eclipse folder, locate eclipse.ini file, add following entry (before -vmargs if present):

    -vm
    C:\Program Files\Java\jdk1.7.0_10\bin\javaw.exe
    

    Save file and execute eclipse.exe.

    这篇关于初始化VM时发生错误(java / lang / NoClassDefFoundError:java / lang / Object)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆