• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i am getting error when i try to run eclips

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Error.png
[Thumbnail for Error.png]
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15481
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can check whether your current Java installation is 32-bit or 64-bit by typing this in a command prompt:

java -version
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic