jvm 1.7 版不适合本产品。窗口中的 eclipse nano 需要更高版本 1.8
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39020928/
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
version 1.7 of the jvm is not suitable for this product. version 1.8 greater is required for eclipse nano in window
提问by shashigura
I am trying to launch Eclipse Nano in Windows 7, but getting the error:
我正在尝试在 Windows 7 中启动 Eclipse Nano,但出现错误:
Version 1.7 of the JVM is not suitable for this product. version 1.8 greater is required for Eclipse Nano in Windows
I already have Java 8 installed on the system
我已经在系统上安装了 Java 8
采纳答案by Javi
sudo /usr/sbin/update-alternatives --config java
and select the jvm 1.8
并选择 jvm 1.8
回答by suyog shinde
Simply download 1.8 JDK from Java SE Development Kit 8 Downloadsinstall it, then copy the jre folder & paste it in:
只需从Java SE Development Kit 8 Downloads下载 1.8 JDK安装它,然后复制 jre 文件夹并将其粘贴到:
"C:\Program Files (x86)\EclipseNeon\"
Then rename the folder to "jre", start the eclipse again it should work.
然后将文件夹重命名为“jre”,再次启动 eclipse 它应该可以工作。
回答by Pruthvidhar Reddy
I faced the same issue (Windows 10). You need to set the "JAVA_HOME"system environment variable to point to JDK 8 folder and edit the "Path"system environment variable to have a new path to JRE 8's binfolder, this should be at the top of the list.
我遇到了同样的问题(Windows 10)。您需要将“JAVA_HOME”系统环境变量设置为指向 JDK 8 文件夹,并编辑“Path”系统环境变量以获得 JRE 8 的bin文件夹的新路径,这应该位于列表的顶部。
回答by Abdalla Mohamed Aly Ibrahim
if it's a 64-bit Eclipse. You'll need to explicitly download and install the 64-bit Java 8 or later.
download it from here
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
如果是 64 位 Eclipse。您需要明确下载并安装 64 位 Java 8 或更高版本。
从这里下载
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
回答by Billy
On a Windows system I had the same problem.
在 Windows 系统上,我遇到了同样的问题。
Although I had only Java 1.8 installed, I found that I also had a 1.7 upgrade file installed too (which didn't get uninstalled automatically when I installed 1.8).
虽然我只安装了 Java 1.8,但我发现我也安装了 1.7 升级文件(安装 1.8 时没有自动卸载)。
Uninstalling this upgrade file allowed me to install Eclipse IDE.
卸载此升级文件使我能够安装 Eclipse IDE。
回答by kalyan krishna
I too got the same error while installing
我在安装时也遇到了同样的错误
Possible reason for the error - The eclipse version, you are installing and the Java version should be of same bit, i.e. either 32 bit or 64 bit
错误的可能原因 - 您正在安装的 eclipse 版本和 Java 版本应该是相同的位,即 32 位或 64 位
Solution: I have downloaded both the java for 64 bit and 32 bit and installed, now my problem is gone.
解决方案:我已经下载了 64 位和 32 位的 java 并安装了,现在我的问题消失了。
Please let me know if it works for you.
请让我知道它是否适合您。
回答by Mounika Sai
When you download the latest eclipse, and extract it, you can find the folder named eclipse-installer with eclipse-inst file inside it. Instead of double-clicking it to start installation, just navigate to the folder in terminal and run ./eclipse-inst
command. It does the entire installation for you. It worked for me and hope who also got the same problem(version 1.7 of the jvm is not suitable for this product. version 1.8 greater is required) gets solved. :)
下载最新的eclipse并解压后,可以找到名为eclipse-installer的文件夹,里面有eclipse-inst文件。而不是双击它开始安装,只需导航到终端中的文件夹并运行./eclipse-inst
命令。它会为您完成整个安装。它对我有用,希望谁也遇到同样的问题(jvm 1.7 版不适合此产品。需要 1.8 版更高)得到解决。:)
回答by Anusha Mandalapu
I had the same issue and I had a different solution to this problem.
Though I set the JAVA_HOME
to 1.8 (Both through CMD and environment variables), the error was persisting.
我有同样的问题,我对这个问题有不同的解决方案。尽管我将 设置JAVA_HOME
为 1.8(通过 CMD 和环境变量),但错误仍然存在。
So I opened CMD prompt, typed:
所以我打开 CMD 提示符,输入:
java - version
to find out 1.7 was the version my system was set to. Until then I had no clue from where it was fetching this version.
找出 1.7 是我的系统设置的版本。在那之前,我不知道它从哪里获取这个版本。
And then I changed it to 1.8 using this command:
然后我使用以下命令将其更改为 1.8:
set path=C:\.....eclipse\jdk1.8.0_141-b15\bin
AND IT WORKED!
它奏效了!
Recheck if it is set to 1.8 with the same command:
使用相同的命令重新检查它是否设置为 1.8:
java -version
You should be good to go now!
你现在应该可以走了!
回答by user889030
tips for windows users
给 Windows 用户的提示
Version 1.7 of the JVM is not suitable for this product. version 1.8 greater is required
JVM 1.7 版本不适合此产品。需要 1.8 更高版本
- user get above error message because they had multiple jdk version or they do not have latest version of jdk installed , even if you install latest version of jdk and you if you have not removed old version of jdk like 1.7 you will get the above error message , so better to get rid of old version of jdk and jre etc.
- 用户收到上述错误消息是因为他们有多个 jdk 版本或者他们没有安装最新版本的 jdk,即使您安装了最新版本的 jdk 并且您没有删除旧版本的 jdk,例如 1.7,您也会收到上述错误消息,所以最好摆脱旧版本的jdk和jre等。
-> ignore this step if you have insallted latest version of jdk already download 32 or 64 bit latest jdk from : https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-> 如果您已经安装了最新版本的 jdk 已经从以下位置下载了 32 位或 64 位最新 jdk,请忽略此步骤:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-> go to C:\Program Files\Java and look for old version of jdk , let say if you have 1.7 versions of jdk delete them so that you are left only with latest version , you can remove old versions of jre too here just by deleting. -> next run eclipse you will not get v1.7 message
-> 转到 C:\Program Files\Java 并查找旧版本的 jdk ,假设您有 1.7 版本的 jdk 删除它们,以便您只剩下最新版本,您也可以在这里删除旧版本的 jre通过删除。-> 下次运行 eclipse 你不会得到 v1.7 的消息
回答by AleksAnderson IT
If you need to skip this step just simply change Required Version number, ex: open with any text editor instalation path/AptanaStudio3.ini and change -Dosgi.requiredJavaVersion=1.8 to -Dosgi.requiredJavaVersion=1.7
如果您需要跳过这一步,只需更改必需的版本号,例如:使用任何文本编辑器安装路径/AptanaStudio3.ini 打开并将 -Dosgi.requiredJavaVersion=1.8 更改为 -Dosgi.requiredJavaVersion=1.7
This is just for skipping this step.
这只是为了跳过这一步。