Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

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