Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » cant run eclipse for java developer
cant run eclipse for java developer [message #633442] Sun, 17 October 2010 21:12 Go to next message
bbto is currently offline bbto
Messages: 1
Registered: October 2010
Junior Member
i have installed java 6 update 22
but i still get this message:
"Version 1.4.2_03 of the JVM is not suitable for this
product. Version: 1.5 or greater is required."

i type java -version in command line
i get get the version of my java is 1.4.2_06
but go into control panel, check the java version : 1.6.0_22

how can i fix it....please help me
my computer OS is XP sp3.
Re: cant run eclipse for java developer [message #633611 is a reply to message #633442] Mon, 18 October 2010 10:23 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3136
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.10.17 19:13, evenoft@gmail.com wrote:
> i have installed java 6 update 22 but i still get this message:
> "Version 1.4.2_03 of the JVM is not suitable for this
> product. Version: 1.5 or greater is required."
>
> i type java -version in command line
> i get get the version of my java is 1.4.2_06
> but go into control panel, check the java version : 1.6.0_22
>
> how can i fix it....please help me
> my computer OS is XP sp3.

Here's what is probably happening...

While you've installed Java 1.6, your JAVA_HOME and/or your PATH
variable is/are incorrectly set. They're pointing to an earlier
installation of Java 1.4. This is why java -version is getting you an
older JRE.

Second, if you're installing Eclipse as appears obvious, be certain to
download jdk1.6.0_22 NOT the more public/consumer thing called a JRE.
You will want the JDK.

You may or may not install the JDK on your machine and you do not have
to install it for Eclipse--just download it someplace and point to it
from eclipse.ini.

If you would like to read more in-depth on this, peruse the first
article or two under the heading "Eclipse-oriented" at
http://www.javahotchocolate.com
Re: cant run eclipse for java developer [message #633808 is a reply to message #633611] Tue, 19 October 2010 09:32 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2207
Registered: July 2009
Senior Member
On 10/18/10 10:23 AM, Russell Bateman wrote:
> On 2010.10.17 19:13, evenoft@gmail.com wrote:
>> i have installed java 6 update 22 but i still get this message:
>> "Version 1.4.2_03 of the JVM is not suitable for this
>> product. Version: 1.5 or greater is required."
>>
>> i type java -version in command line
>> i get get the version of my java is 1.4.2_06
>> but go into control panel, check the java version : 1.6.0_22
>>
>> how can i fix it....please help me
>> my computer OS is XP sp3.
>
> Here's what is probably happening...
>
> While you've installed Java 1.6, your JAVA_HOME and/or your PATH
> variable is/are incorrectly set. They're pointing to an earlier
> installation of Java 1.4. This is why java -version is getting you an
> older JRE.
>
> Second, if you're installing Eclipse as appears obvious, be certain to
> download jdk1.6.0_22 NOT the more public/consumer thing called a JRE.
> You will want the JDK.
>
> You may or may not install the JDK on your machine and you do not have
> to install it for Eclipse--just download it someplace and point to it
> from eclipse.ini.

Also, please pay attention to the "sticky" posts at the top of this
forum group. There is one that specifically says "Can't get Eclipse to
run? READ THIS"

Eric
Previous Topic:How to use eclipse as generic java editor and compiler without package structure?
Next Topic:Simple question
Goto Forum:
  


Current Time: Wed Jul 30 19:37:20 EDT 2014

Powered by FUDForum. Page generated in 0.01502 seconds