解决JVM is not suitable for this product

2025-05-09 03:42:57

1、1.eclipse启动时报错 Version 1.4.2_03 of the JVM is not suit锾攒揉敫able for this product. Version:1.6 or greater is required.翻译过来的意思就是,1.4版本的JDK不适合eclipse,需要1.6及以上版本的JDK

解决JVM is not suitable for this product

2、2.首先查看本机电脑的JDK版本,在控制台输入 Java -version , (注:图中是我配置好的JDK1.6,你看到的应该是1.4及以下版本的JDK),如果JDK版本在1.4及以下,是不能使用最新的eclipse的

解决JVM is not suitable for this product

3、3.分析原因:我安装了oracle,oracle默认的使用是1.4的jdk。在环境变量path中看到 oracle的配置是在最前边的(可以拷贝出来到记事本当中查看),所以eclipse默认也就是使用1.4的jdk了

解决JVM is not suitable for this product

4、4.解决 安装JDK1.6 如下图

解决JVM is not suitable for this product

5、5.在环境变量中把JDK的路径配置到最前边

解决JVM is not suitable for this product

6、6.在控制台查看java版本,是否为1.6版本的JDK

解决JVM is not suitable for this product

7、7.如果JDK设置成功话,重启eclipse 就可以正常打开了!

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢