我的Java版本是最新版本,但我的JVM还是1.5? [英] My Java version is the newest version but my JVM is still 1.5?

查看:439
本文介绍了我的Java版本是最新版本,但我的JVM还是1.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我尝试使用 Eclipse
但是当我打开它,它告诉我我的JVM版本太旧了

Recently I tried to use Eclipse but when I open it,it told me my JVM verion is too old

Incompatible JVM
Version 1.5.0_05 of the JVM is not suitable for this product.<br>
Version: 1.6 or greater is required

什么让我感到奇怪的是,我的java veri是最新的版本。

What make me feel strange is that' my java verion is the newest verion .

此外,我还尝试从Oracle ... jre,jdk等等安装最后一个版本,每次启动Eclipse时都会出现同样的错误

Also I have tried to install the last version from Oracle... jre,jdk or whatever, the same error come every time I start Eclipse

请不要告诉我修改eclipse.ini中的数据从1.6转到1.5
,我曾经尝试过,并通过保存.class文件得到错误.E

Please don't tell me to edit the data in "eclipse.ini" from turning 1.6 to 1.5 as I have ever tried it and get an error by saving a .class file.E

推荐答案

p>当您的SO中安装了另一个Java版本时,会发生这种情况并且此版本的路径保留在环境变量中。路径。所以,删除指向另一个旧版本的Java的任何路径。在我的情况下,我有oracle Forms6i安装在我的S.O.中,安装程序放置到java 1.4的路径。在我的情况下,路径是:C:\ oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;
C:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin;

This happen when you have another java version installed in your S.O. and the path to this version stay in "Environment Variables"."Path". So, remove any path that is pointing to another old version of java. In my case, i have oracle Forms6i installed in my S.O., and the installation program putted the path to the java 1.4. In my case the path was: C:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client; C:\oracle\product\10.1.0\Client_1\jre\1.4.2\bin;

要访问环境变量无窗口,右键单击我的电脑 - >属性上的鼠标。在左侧点击高级系统设置,在顶部点击指南高级,然后点击底部最后一个按钮环境变量。在底部有系统变量,搜索路径,并做我上面说的那个。

To access "Ambient Variables" no windows, right click mouse button on "My Computer" -> "Properties". On the left side click in "Advanced System Settings", on the top, click in the guide "Advanced", then click in the last button on the bottom, "Enviroment Variables". On the bottom have "System Variables", search for "Path" and do what i said there on top.

这篇关于我的Java版本是最新版本,但我的JVM还是1.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆