在 Windows 7 64 位机器上找不到启动 Eclipse 3.6.1 的 Java 虚拟机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4383587/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 16:45:54  来源:igfitidea点击:

No Java virtual machine found starting Eclipse 3.6.1 on Windows 7 64bit machine

eclipsewindows-7java

提问by John Adams

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:

我知道一些 C# 并且我使用 Visual Studio 2008,但现在我正在尝试帮助我的儿子使用一些基本的 Java 程序。我已经安装了我认为正确版本的 Eclipse:

eclipse-SDK-3.6.1-win32-x86_64

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:

我有一个小的“hello world”starter .java 文件,我想运行和使用,但我什至无法在这台机器上开始使用。我立即收到此消息:

"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"

“必须有 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 在您当前的路径中”

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.

这是一个 AMD 四核处理器,我运行的是 64 位 Windows 7,所以我相信 Eclipse SDK 也是正确的 64 位。我一直在尝试找到正确的 Java“虚拟机”/JRE/JDK 或其他任何东西并下载它,这样这个问题就会消失,我让 Eclipse 运行。

I am a total rookie on Java and its terminology and environs and would really appreciate some basic advice on this. Thanks.

我是 Java 及其术语和环境的完全新手,非常感谢有关此的一些基本建议。谢谢。

采纳答案by Andrew White

Hop over to http://www.oracle.com/technetwork/java/javase/downloads/index.htmland download the Java SDK. I think this will get you going unless I am misunderstanding something.

跳转到http://www.oracle.com/technetwork/java/javase/downloads/index.html并下载 Java SDK。我认为这会让你继续前进,除非我误解了什么。

回答by Machinarius

Download the JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

从这里下载 JDK:http: //www.oracle.com/technetwork/java/javase/downloads/index.html

The Eclipse SDK only contains the Eclipse IDE AFAIK :p

Eclipse SDK 仅包含 Eclipse IDE AFAIK :p

回答by Mohamed Saligh

Just go through this steps, well explained in step by step :-)

只需完成这些步骤,一步一步地解释清楚:-)

Setting Up Eclipse with Java

使用 Java 设置 Eclipse

回答by Thorbj?rn Ravn Andersen

For pure Eclipse you do not need a JDK, just a JRE, so the easiest way is to go to http://java.comand allow it to install Java on your computer.

对于纯 Eclipse,您不需要 JDK,只需要一个 JRE,因此最简单的方法是访问http://java.com并允许它在您的计算机上安装 Java。

Then Eclipse will work.

然后 Eclipse 将工作。

回答by user79878

If you're running 64 bit Windows and Eclipse, make sure you install 64 bit java!

如果您运行的是 64 位 Windows 和 Eclipse,请确保安装 64 位 java!

See this question: Failed to load the JNI shared Library (JDK)

看到这个问题:Failed to load the JNI shared Library (JDK)