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
Christopher Dvorak
843 PointsI 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
6 Answers
Gunjeet Hattar
14,483 PointsFor 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
Christopher Dvorak
843 PointsOk 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
Gunjeet Hattar
14,483 PointsDid 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
Ben Rubin
Courses Plus Student 14,658 PointsDo 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).
Christopher Dvorak
843 PointsI tried both options and still it did not work
Christopher Dvorak
843 Pointsand yes i have Windows 8 and i have downloaded both
Christopher Dvorak
843 PointsWait i got it... it was the difference between a space
Gunjeet Hattar
14,483 PointsGreat! :)
Gunjeet Hattar
14,483 PointsGunjeet Hattar
14,483 PointsAre using a Mac or Windows?