在 Windows 7 64 位计算机上启动 Eclipse 3.6.1 时找不到 Java 虚拟机
我了解一些 C#,并且使用 Visual Studio 2008,但现在我正在尝试帮助我的儿子学习一些基本的 Java 程序。我已经安装了我认为正确的 Eclipse 版本:
eclipse-SDK-3.6.1-win32-x86_64
我有一个小“hello world”启动器 .java 文件,我想运行和使用,但我什至无法开始这台机器。我立即收到此消息:
“必须有 Java 运行时环境 (JRE) 或 Java 开发工具包 (JDK) 才能运行 Eclipse。搜索以下位置后未找到 Java 虚拟机: C:\Users\john\Documents\eclipse-SDK-3.6.1-win32-x86_64\eclipse\jre\bin\javaw.exe javaw.exe 在你当前的路径中”
这是一个 AMD 四核处理器,我运行的是 64 位 Windows 7,所以我相信 Eclipse SDK 也是正确的 64 位。我花了很长时间试图找到正确的 Java “虚拟机”/JRE/JDK 或其他东西并下载它,这样这个问题就会消失,并且我可以运行 Eclipse。
我是 Java 及其术语和环境方面的新手,非常感谢对此的一些基本建议。
I know some C# and I use Visual Studio 2008 but now I am trying to help my son with some basic Java programs. I have installed what I think is the proper version of Eclipse:
eclipse-SDK-3.6.1-win32-x86_64
I have a little "hello world" starter .java file I want to run and play with but I cannot even get started on this machine. I get this message immediately:
"A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
C:\Users\john\Documents\eclipse-SDK-3.6.1-win32-x86_64\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
This is an AMD Quad-Core Processor and I'm running 64bit Windows 7 so I believe the Eclipse SDK is also properly 64bit. I have been having a heck of a time trying to locate the proper Java "virtual machine" / JRE / JDK or whatever and get it downloaded such that this problem goes away and I get Eclipse running.
I am a total rookie on Java and its terminology and environs and would really appreciate some basic advice on this. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
跳转到 http://www.oracle.com/technetwork/java/ javase/downloads/index.html 并下载 Java SDK。我想这会让你继续前进,除非我误解了什么。
Hop over to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download the Java SDK. I think this will get you going unless I am misunderstanding something.
只需完成这些步骤,一步一步详细解释:-)
使用 Java 设置 Eclipse
Just go through this steps, well explained in step by step :-)
Setting Up Eclipse with Java
从这里下载 JDK:
http://www.oracle.com/technetwork/java/javase/downloads /index.html
Eclipse SDK 仅包含 Eclipse IDE AFAIK :p
Download the JDK from here:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
The Eclipse SDK only contains the Eclipse IDE AFAIK :p
对于纯 Eclipse,您不需要 JDK,只需要 JRE,因此最简单的方法是访问 http://java.com 并允许它在您的计算机上安装 Java。
然后 Eclipse 就可以工作了。
For pure Eclipse you do not need a JDK, just a JRE, so the easiest way is to go to http://java.com and allow it to install Java on your computer.
Then Eclipse will work.
如果您运行的是 64 位 Windows 和 Eclipse,请确保安装 64 位 java!
请参阅此问题:无法加载 JNI 共享库 (JDK)
If you're running 64 bit Windows and Eclipse, make sure you install 64 bit java!
See this question: Failed to load the JNI shared Library (JDK)