My Java version is the newest version but my JVM is still 1.5?

前端 未结 5 592
误落风尘
误落风尘 2021-01-24 01:45

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 prod         


        
5条回答
  •  Happy的楠姐
    2021-01-24 02:25

    If this is happening when you click on the Eclipse icon, make sure that you have completely removed any previous Java installation. If you need to have Java 1.5, make sure that this installation is not referenced in the PATH environment variable.

    If you can start eclipse, you can configure Eclipse projects to use the correct Java installation.

    1. Click Window->Prefences from the menu.
    2. Select Java-> Installed JREs
    3. Select Add
    4. Select Standard VM
    5. Set the directory to your 1.6 jdk directory.

提交回复
热议问题