eclipse指定jdk版本启动,解决Version XXXX of the JVM is not suitable

当遇到‘Version XXXX of the JVM is not suitable’错误时,可以通过修改eclipse.ini文件来指定使用JDK1.8或更高版本。在eclipse.ini中添加'-vm'字段,并指向JDK的bin目录,例如-D:/jdk1.8.0_40/bin,确保路径中的斜杠正确。完成配置后,Eclipse将使用指定的JDK启动。

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

可以解决Version XXXX of the JVM is not suitable for this product.Version:XXXXXX or greater is required。

例如:Verson1.7.0_79 of the JVM is not suitable for this product Version:1.8 or greater is required

点击启动eclipse出现如下图错误

解决方式:
配置eclipse文件夹下的eclipse.ini文件。
添加如下字段:
-vm
D:/jdk1.8.0_40/bin 注意/和\
下面是完整配置:

-vm
D:/jdk1.8.0_40/bin
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

参考:
巴顿

评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值