博客分类: java基础知识
Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required
今天早上启动eclipse时突然报这个错误,昨天还没报今天怎么就报错了呢,想起昨天我安装了一个oracle 10.1的客户端,原以为是端口被占用了,可关闭oracle默认启动项后依然报错,然后再仔细看一下报的错.
翻译过来就是:"jvm虚拟机版本1.42_03不再适合这个项目,要求更换成版本1.5的",其实什么意思,就是
使用eclipse-jee-helios-win32 时,eclipse启动报错: Version 1.4.2_03 if the JVM is not suitable for this product. Version 1.5 or greater us required. 由于Oracle的缘故它变更了原有的jre环境
解决:在我的电脑-高级-环境变量path中,将系统变量path里面的内容调整一下,Oracle的内容全部移到最后边,
如现在的是: E:\oracle\product\10.1.0\Client_1\bin;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin
;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs
你要改成这样:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;E:\oracle\product\10.1.0\Client_1\bin; E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin
//调试成功
你可以这样做,安装oracle以后,oracle的配置路径占据了path的前面部分,你复制剪贴oracle的部分到path的最后面即可。比如:
path: E:\oracle\product\10.1.0\Client_1\bin;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin
;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs
那么你剪贴 E:\oracle\product\10.1.0\Client_1\bin;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin
;
然后在path路径的最后添加一个 分号; 再在分号后面加入剪贴的内容,如上面写的那样就可以了。
本文解决在使用Eclipse启动时报错的问题,指出是由于安装了Oracle客户端导致JVM版本不匹配,通过调整系统变量path中的Oracle配置路径位置解决了该问题。
2万+

被折叠的 条评论
为什么被折叠?



