Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

I can't get into eclipse

Whenever i try to run eclipse it brings up something saying that is saying a JRE or JDK must be available to run eclipse and i don't know what that is

Are using a Mac or Windows?

6 Answers

For windows

  • use this link to download the SDK or JDK Download Java SDK
  • Download the appropriate version for either 32 bit or 64 bit OS
  • After it installs restart your computer and try running eclipse again and it should work

For Mac

  • use the same link to download the JDK, however if you are using Mavericks then eclipse will always show an error. Just use this link to download and install this particular Java SDK version Apple Java Support
  • try running eclipse again and it should work

Ok i have installed it and it brings up a message saying No Java virtual machine found after searching ../Java/jdk 1.6.0_35/bin/javaw.exe

Did you download the JDK or the JRE from the link I've given above? If you have downloaded only JRE you will have to install JDK as well.
If you have installed the JDK and still there is an error as a work around you can do this. Well since you have not mentioned I'm guessing you are using the Windows platform with Eclipse.
Go to the folder where you have installed Java (usually C:/ProgramFiles (or Program Files (X86))\Java\jdk_versionNo.\bin) .. or where ever you have installed it. But just make sure you copy the address until the bin folder of the jdk
Now go to the location where you have unzipped eclipse. Open the eclipse folder and within it try to find the file called eclipse.ini . Open the file with a notepad and type on a new line this just before the *vmargs-Dosgi.required version ... * text .

-vm
path to your java sdk bin folder (for e.g. C:/ProgramFiles (or Program Files (X86))/Java/jdk_v1.7.0_22/bin )
save the file and run eclipse now. Should be fine
A video for your reference too Youtube Video No JVM Issue

Do you have Java installed?

Also, make sure that you have a JAVA_HOME environment variable, and that it is set to your Java directory (for instance C:\Program Files\Java\jdk1.7.0_25).

I tried both options and still it did not work

and yes i have Windows 8 and i have downloaded both

Wait i got it... it was the difference between a space

Great! :)