Version 1.6.0_65 of the JVM is not suitable

本文介绍了一种在Mac上使用Eclipse时遇到的Java版本不匹配问题及其解决方案。用户在启动Eclipse 4.4时收到错误提示,表明安装的JVM版本与Eclipse需求不符。通过修改.bash_profile文件及eclipse.ini中的-vm参数来指定正确的Java路径,最终解决了此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This question already has an answer here:
Eclipse in OS X uses different version of Java than CLI 6 answers
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:

java8]:
vim ~/.bash_profile
{
export JAVA_HOME=”/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home”
}
source ~/.bash_profile
java -version

java7]:
{
export JAVA_HOME=”/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home”
}

eclipse for mac:
eclipse.ini set {
……
-vm/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java
-vm/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值