初始化VM时发生错误(java / lang / NoClassDefFoundError:java / lang / Object) [英] Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
问题描述
Eclipse安装:
中提取Eclipse C:\eclipse
C:\eclipse\eclipse.exe
当我尝试运行Eclipse这个快捷方式,我看到下面的Eclipse启动屏幕一秒钟,它消失了。 Eclipse没有启动。
JAVA安装:
- 已安装JDK在
C:\Program Files\Java\jdk1.7.0_10
- 安装的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:
- Extracted Eclipse at
C:\eclipse
- 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:
- Installed JDK at
C:\Program Files\Java\jdk1.7.0_10
- 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屋!