Version 1.4.2_03 jvm is not suitable for this product. 1.5 or more problem required

Today I installed the xp 2002 x2 service pack, eclipse worked fine in the previous window, but now when I run eclipse it gives "version 1.4.2_03, not suitable for this product. 1.5 or more is required" and does not start. To check my jvm version, I visited java.com and clicked on the free java download button, it confirmed that I recommend java installed (1.6.0_27-ea), but eclipse gives the above message. Tell me out loud what am I doing?

Thank you in advance

+4
source share
7 answers

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

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

Make sure that:

  • You add this text before any -vmargs option that may be in this file.
  • -vm is on a separate line, and the path to javaw.exe is on a separate line.
  • You specify the full path to your JDK 1.5 javaw.exe
+24
source
  • Try uninstalling the previous version of Java (if any)

  • Find and replace with the new version the binary file 'java.exe' located somewhere in C: \ Java \ JDK \ 1.5 \ bin \ javaw.exe

+4
source

Below answer is suitable for springsuite

-vm

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

in

springsuite is also the same

Go to the installed STS.ini
for instance

F: \ springsource \ sts-3.1.0.RELEASE \ STS.ini open in editplus save two lines up to -vmargs as

-vm

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

It works successfully, I did it.

+2
source

Make echo %JAVA_HOME% . And make sure it points to your new version of java.

+1
source

I had the same issue with java 1.5 when I installed 1.6. Uninstalled 1.5 by uninstalling jdk, and then installed 1.6 and installed java_home, which solved this problem.

+1
source

My problem was the same after running Eclipse only once with Java 7, and then to go back using Java 6.

Decision. In eclipse.ini, I restored the value "1.6" to what was "- Dosgi.requiredJavaVersion = 1.7".

NTN!

0
source

Follow the instructions below to fix the problem.

1) Install the latest version of jdk

2) Open the eclipse.ini file in editplus (find this file in the eclipse folder)

3) write the first two lines, as shown below, using the java path and your java version

 -vm C:\Program Files\Java\jdk1.6.0_12\bin\javaw.exe after writing that two lines your eclipse.ini files looks like this -vm C:\Program Files\Java\jdk1.6.0_12\bin\javaw.exe -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503 -product . . . . . 
-1
source

All Articles