This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

i am getting error when i try to run eclips  RSS feed

 
Ranch Hand
Posts: 1288
  • 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]
 
Sheriff
Posts: 21461
96
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.
 
Java Cowboy
Sheriff
Posts: 16084
88
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!