This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes i am getting error when i try to run eclips Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "i am getting error when i try to run eclips" Watch "i am getting error when i try to run eclips" New topic
Author

i am getting error when i try to run eclips

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1207
I have already install jdk & add the path variable to bin folder.But when i am try to run eclips i am getting this error ?
I have attached a screenshot.


[Thumbnail for Error.png]

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19725
    
  20

I can think of three possible reasons for this error:
1) Your JDK installation is faulty, as there is no JRE installed inside the JDK folder.
2) Your JDK is installed in a folder different from the one Eclipse is looking at.
3) You have a 32 bit Eclipse installation and a 64 bit JDK installation.

I think it's the third one. Eclipse is trying to find the JRE inside C:\Program Files (x86). The (x86) part indicates you have a 64 bit Windows installation, where 64 bit applications are installed inside C:\Program Files and 32 bit applications are installed inside C:\Prorgam Files (x86).
A 32 bit Eclipse installation can only use a 32 bit JVM, and a 64 bit Eclipse installation can only use a 64 bit JVM. Since Eclipse is looking for the 32 bit version, my guess is that Eclipse is 32 bit as well. As it can't find the 32 bit JDK folder, my guess is that the JDK is 64 bit.

If this is the case, you have two options:
1) Install a 32 bit JRE. You can have both a 32 bit JRE and a 64 bit JDK at the same time, so no need to reinstall anything.
2) Install a 64 bit Eclipse.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14278
    
  21

You can check whether your current Java installation is 32-bit or 64-bit by typing this in a command prompt:

java -version

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i am getting error when i try to run eclips