首页 > 其他分享 >打开Eclipse时提示“JVM is not suitable for this product”问题的解决

打开Eclipse时提示“JVM is not suitable for this product”问题的解决

时间:2022-08-31 10:35:51浏览次数:49  
标签:product -- Eclipse eclipse launcher org suitable

今天打开Eclipse时弹出一个错误提示,无法正常打开。

“Version 1.8.0_131 of the JVM is not suitable for this product. Version: 11 or greater is required.”

之前印象中是可以正常打开的。

起初以为是JDK没装,或者装的版本太低了,把电脑里的JDK 13版本想再装一下,提示已经安装了。

网上搜了一下,可能是环境变量变了。按提示修改eclipse.exe文件同级目录下的eclipse.ini文件,在里面添加一些配置。

头两句红色标注的,就是我添加的。

-vm
C:/Program Files/Java/jdk-13.0.2/bin
-startup
plugins/org.eclipse.equinox.launcher_1.6.0.v20200915-1508.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.0.v20200915-1442
-product
org.eclipse.epp.package.php.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=11
[email protected]/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM

改完后保存配置文件,然后重新打开Eclipse应用,正常进入应用。

标签:product,--,Eclipse,eclipse,launcher,org,suitable
From: https://www.cnblogs.com/wzwyc/p/16642093.html

相关文章