Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 349
Adnan Avatar asked Nov 27 '22 07:11

Adnan


2 Answers

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
like image 160
Adnan Avatar answered Dec 05 '22 11:12

Adnan


  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

like image 30
Vadim Avatar answered Dec 05 '22 11:12

Vadim