windows 安装 JDK 后 Eclipse 未打开 - Win 7 Machine 64 位
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5910515/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse not opening after JDK installation - Win 7 Machine 64 bit
提问by Siva
Eclpse IDE is not opening after JDK installation. After reading through couple of related posts. I added for path in environment variables below text
安装 JDK 后 Eclpse IDE 未打开。在阅读了几个相关的帖子后。我在文本下方的环境变量中添加了路径
C:\Program Files\Java\jdk1.6.0_25\bin\javac;C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe
When I type path in cmd file this values get reflected.
当我在 cmd 文件中输入 path 时,这个值会得到反映。
Now I'm bit worried if I have to uninstall and check. Any help is appreciated.
现在我有点担心是否必须卸载和检查。任何帮助表示赞赏。
回答by VonC
Rather than fiddling with the $PATH
, I would first set explicitly the jdk to use when launching eclipse, by editing eclipse.ini
and adding those lines:
$PATH
我不会摆弄 ,而是首先通过编辑eclipse.ini
和添加这些行来明确设置要在启动 eclipse 时使用的 jdk :
-vm
C:/Program Files/Java/jdk1.6.0_25/jre/bin/server/jvm.dll
See this eclipse.ini
as an example.
见这个eclipse.ini
作为一个例子。
See also "Eclipse crashes on start-up. Wrong eclipse.ini?" for more.
另请参阅“ Eclipse 启动时崩溃。eclipse.ini 错误?”了解更多信息。
回答by Chiya
You may also try by removing these two lines.
您也可以尝试删除这两行。
Edit the eclipse.ini file and remove these two lines: -startup plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
编辑 eclipse.ini 文件并删除这两行:-startup plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
回答by ?ɑ??????
Siva,
湿婆,
For your eclipse to recognize your virtual machine you basically have 3 alternatives:
为了让您的 eclipse 识别您的虚拟机,您基本上有 3 种选择:
Method 1
方法一
Control Panel > Java > Java tab > click the View button.
控制面板 > Java > Java 选项卡 > 单击查看按钮。
Find your JVM installation and inside Runtime Parameters, put:
找到您的 JVM 安装并在运行时参数中输入:
-Djava.home=YOUR_JVM_PATH_HERE
In your case: -Djava.home=C:\Program Files\Java\jdk1.6.0_25\
-Djava.home=YOUR_JVM_PATH_HERE
在您的情况下:-Djava.home=C:\Program Files\Java\jdk1.6.0_25\
Method 2
方法二
You can set your JAVA_HOME https://stackoverflow.com/a/6521412/5626568
您可以设置您的 JAVA_HOME https://stackoverflow.com/a/6521412/5626568
Method 3
方法三
How to specify your JVM direct inside config file: Eclipse workspace crashes on startup
如何在配置文件中直接指定 JVM: Eclipse 工作区在启动时崩溃
Important to remember:
重要的是要记住:
- For the 32-bit Eclipse executable (eclipse.exe on Windows) a 32-bit JVM must be used
- For the 64-bit Eclipse executable a 64-bit JVM must be used
- 32-bit Eclipse will not work with a 64-bit JVM
- 对于 32 位 Eclipse 可执行文件(Windows 上的 eclipse.exe),必须使用 32 位 JVM
- 对于 64 位 Eclipse 可执行文件,必须使用 64 位 JVM
- 32 位 Eclipse 不适用于 64 位 JVM
I hope this helps...
我希望这有帮助...
Good Luck!
祝你好运!