养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

JVM is not suitable for this product怎么解决

时间:2024-10-15 14:16:23

启动eclipse提示Version1.4.2_03oftheJVMisnotsuitableforthisproduct.Version:1.5orgreaterisrequired.

方法/步骤

1、首先分析一下提示的意思,eclipse需要高版本的jdk,目前使用的是1.5不满足需求

JVM is not suitable for this product怎么解决

2、需要查看目前使用的jdk版本,如果是1.4跟错误提示上的一样就需要安装jdk高版本,如果如下图是1.5就是正常的

JVM is not suitable for this product怎么解决

3、安装jdk高版本,我这里安装的jdk1.5.0版本,这个可以在网上下载

JVM is not suitable for this product怎么解决

4、安装完毕后可能还是提示这个错误,猜测有两个原因,安装了低版本但是没卸载安装了oracle,oracle自带jdk1.4版本,第一个问题自己卸载就可以了,第二个问题就需要配置了

JVM is not suitable for this product怎么解决

5、配置环境变量,主要是java_home,java_home配置的jdk路径就是你刚刚安装的1.5版本的jdk安装路径

JVM is not suitable for this product怎么解决

6、配置完成后还是提示这个错误,为什么呢?如果你没有安装oracle,电脑里就只有一个jdk,不会报错,安装了oracle,就有两个jdk,默认的是加载oracle的1.4的jdk

JVM is not suitable for this product怎么解决

7、怎么去加载1.5而不加载1.4呢?需要修改他们的加载顺序,这个修改就在环境变量里进行,变量名path

JVM is not suitable for this product怎么解决

8、顺序靠前的环境变量优先加载,将jdk的地址调到oracle前面,这时候就会优先加载你后来安装的jdk

JVM is not suitable for this product怎么解决

9、大家也看到了,我用的是变量,这样就不用重复的写jdk安装目录,容易超长,修改起来也很麻烦

JVM is not suitable for this product怎么解决

© 一点知识