Skip to main content


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] Mon, 18 October 2010 01:12 Go to next message
bbto is currently offline bbtoFriend
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 14:23 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
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 13:32 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
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: Thu Apr 25 20:19:02 GMT 2024

Powered by FUDForum. Page generated in 0.07631 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top