启动Eclipse 4.4时出现错误“JVM的版本1.6.0_65”不适用于此产品。 [英] Error launching Eclipse 4.4 "Version 1.6.0_65 of the JVM is not suitable for this product."

查看:1567
本文介绍了启动Eclipse 4.4时出现错误“JVM的版本1.6.0_65”不适用于此产品。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Mac上启动Eclipse 4.4有一个问题。我收到以下错误:
版本1.6.0_65的JVM不适合此产品。
我安装了最新版本。当我运行java -version时,我得到:

  java版本1.8.0_05
Java( TM)SE运行时环境(build 1.8.0_05-b13)
Java HotSpot(TM)64位服务器虚拟机(构建25.5-b02,混合模式)

这是我的eclipse.ini文件,我已经试图将-vm参数显式设置为我的jdk1.8:

  -startup 
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
- -launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.200.v20140603-1326
-product
org.eclipse。 epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion = 1.7
-XstartOnFirstThread
- Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize = 256m
-X ms40m
-Xmx512m
-Xdock:icon = .. / Resources / Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java


解决方案

请检查是否有x64版的eclipse。有人回答这个只是几小时前


I have a problem launching Eclipse 4.4 on my Mac. I'm getting the following error: "Version 1.6.0_65 of the JVM is not suitable for this product." I have the latest version installed. When I'm running java -version I'm getting:

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Here is my eclipse.ini file where I already tried to explicit set the -vm parameter to my jdk1.8:

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-vm 
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java

解决方案

Please check if you got the x64 edition of eclipse. Someone answered this just a few hours ago.

这篇关于启动Eclipse 4.4时出现错误“JVM的版本1.6.0_65”不适用于此产品。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆