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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Brett Klugman](https://secure.gravatar.com/avatar/e5500c0b20d76f03ba52d1017ee77b9d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brett Klugman
2,147 Pointsproblem 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
![cbcbcb](https://secure.gravatar.com/avatar/cb8f8e12955eea3243bc9c4799d996eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cbcbcb
16,560 PointsAlso....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.
![cbcbcb](https://secure.gravatar.com/avatar/cb8f8e12955eea3243bc9c4799d996eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cbcbcb
16,560 PointsTry to point eclipse's config parameter for the JDK to C:\Program Files\Java\
![cbcbcb](https://secure.gravatar.com/avatar/cb8f8e12955eea3243bc9c4799d996eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cbcbcb
16,560 PointsIf 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
![J Andrew Scott](https://secure.gravatar.com/avatar/279ea07b2db90bd5493bcb2784f75c8e?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
J Andrew Scott
30,626 PointsYou need to have the JDK installed. You can download it here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
![cbcbcb](https://secure.gravatar.com/avatar/cb8f8e12955eea3243bc9c4799d996eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cbcbcb
16,560 PointsTry to point eclipse's config parameter for the JDK to C:\Program Files\Java\
![cbcbcb](https://secure.gravatar.com/avatar/cb8f8e12955eea3243bc9c4799d996eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cbcbcb
16,560 Pointsthat's for windows