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

java not working

i installed java 64bit version on my computer for windows 7. and the command prompt still says its not on my computer. any reason it would be doing this?

has been answered. thank you all.

Have you checked your path variables

3 Answers

Did you install the Oracle JDK or the Oracle JRE? Look under your program folder for 64 bit in the Java or Oracle folder..(forget what the top level is for the folder name that they nest the different installed versions under). It honestly doesn't matter. Just point your Eclipse/Android Studio/IDEA IDE towards that folder and it will populate a list of all currently installed compilers and runtime environments. Unless you plan on using java to compile & run with but since this is Android I'm guessing not.

If you're still having problems Stack Overflow has some awesome references on this exact topic when I suffered..

Hi Michael,

Assuming that you have installed Java SDK 8 Update XX (the current Java version), for the command prompt to understand that Java is installed you will need to point tell it explicitly.

By convention you should install java SDK first and then Eclipse so that eclipse can automatically target your java sdk version and use it.

The reason why you need to explicitly define it trough the ways defined below, is because command prompt runs at a very root level of an OS, it has to be told about it's target (link to binary & executable files of java) before it can actually make sense.

Few ways to do it

1) Set path and classpath environment variable (I recommend this way)

Finally just open command prompt and type javac, if successful it will display all the commands available

Youtube Video ... If you don't quite follow this one, there are 1000's of videos that will tell you how to do it. This is a permanent way.

2) Within command prompt define using the set path and set class path commands. Problem with this is, once you quit the command prompt, next time you will have to define the path and classpath again using command. This is a temporary way

Youtube Video

Hope this helps. Ask again if you need help

sweet thank you for all the help. i got it going the way i wanted.