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


Brett Klugman
Brett Klugman
2,147 Points

problem starting eclipse

This is the error message I got: A java runtime environment or java development kit must be available in order to run eclipse no java virtual machine was found after searching the following locations

any ideas how to fix it?

6 Answers

Also....If you want to..it's sometimes easier if you're not familiar with Eclipse to just install the Android Bundle http://developer.android.com/sdk/index.html#win-bundle instead of installing the ADT and eclipse and the jdk. It is the same thing as Eclipse but they recompiled the source code and included their logo instead of Eclipse's. It comes with the Android tools and the plugin already configured in a zip archive. I think the JDK installs automatically as well. You don't need to worry about setting your systems environment varaible for Java either. Just as long as you explicitly point Eclipse towards it you should be fine.

Try to point eclipse's config parameter for the JDK to C:\Program Files\Java\

If Linux and in the case it's debian based do

$ sudo gzip -d /tmp/jdk-7u45-linux-x64.tar.gz | tar xvf - $ if [ ! -d '/usr/lib/jvm' ]; then mkdir /usr/lib/jvm; fi $ mv /home/jdk1.7.0_45 /usr/lib/jvm/ $ update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7./bin/java 1065 $ update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7./bin/javac 1065 $ update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.7./bin/jar 1065 $ update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7./bin/javaws 1065 $ update-alternatives --config java $ jdk # $ java -version

You need to have the JDK installed. You can download it here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Try to point eclipse's config parameter for the JDK to C:\Program Files\Java\

that's for windows