version 1.4.2_03 of the jvm is not suitable for this product. 1.5 or greater is required problem

33,604

Solution 1

Go to the directory where eclipse is installed and find a file called eclipse.ini. Open it and add the following lines

-vm
C:\Java\JDK\1.5\bin\javaw.exe

Make sure:

  1. You add that text before any -vmargs option that may be in that file.
  2. The -vm is on its own line and the path to javaw.exe is on its own line.
  3. You specify the full path to your JDK 1.5's javaw.exe

Solution 2

  1. Try to uninstall previous Java version (if it is present)

  2. Find and replace with newer version the 'java.exe' binary, located somewhere on C:\Java\JDK\1.5\bin\javaw.exe

Solution 3

below answer is suitable for springsuite

-vm

C:\Program Files (x86)\Java\jdk1.6.0_12\bin\javaw.exe

in

springsuite also same

Go to installed STS.ini
For example

F:\springsource\sts-3.1.0.RELEASE\STS.ini open in editplus keep two lines before -vmargs as

-vm

C:\Program Files (x86)\Java\jdk1.6.0_12\bin\javaw.exe

it works sucessfully i had done it.

Solution 4

Do a echo %JAVA_HOME%. And make sure that it points to your new java version.

Solution 5

I had same issue with java 1.5 when i installed 1.6. Removed 1.5 by deleting jdk and then installed 1.6 and set java_home which solved this issue.

Share:
33,604
Adnan
Author by

Adnan

Updated on May 12, 2020

Comments

  • Adnan
    Adnan about 4 years

    Today i installed windows xp 2002 service pack2, eclipse was working fine on previous same window but now when i run eclipse it gives "version 1.4.2_03 is not suitable for this product.1.5 or greater is required" message and does not run. For checking my version of jvm, i visited java.com and clicked upon free java download button, it verified that i am having recommended java installed(1.6.0_27-ea) but eclipse is giving above mentioned message.Kindly tell me that what should i do?

    Thanks in advance

  • swiftBoy
    swiftBoy about 11 years
    Thank you for time and such a nice solution!!
  • Bat_Programmer
    Bat_Programmer almost 11 years
    ok i solved it. It should have been as follows: -vm C:/Program Files/Java/jdk1.7.0_25/bin/javaw.exe
  • Bat_Programmer
    Bat_Programmer almost 11 years
    forward slash rather than a backward slash