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!

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 Build a Simple Android App (2014) Getting Started with Android Setting Up an Android Development Environment for Windows

Nimmi Cherian
Nimmi Cherian
1,358 Points

Problem with Java Installation - stuck for the past two days

Hello,

I've been stuck with a peculiar problem for the past two days.

I have installed Java for Windows(64 bit) using the link given in the tutorial. The environment variable JAVA_HOME has also been set to point to the jdk. However, running the 'javac -version' on the command prompt still gives me a 'javac is not recognized as an internal or external command' error. But running 'java -version' gives me the version of the jdk installed.

I tried uninstalling and re-installing the java.exe file two times, but the same error pertains. Should I be worried in going forward with working on Android Studio? Will it affect the projects that I'll be creating or importing?

It will be great if I can get a solution soon.

Thank You.

2 Answers

Chris Shaw
Chris Shaw
26,663 Points

Hi Nimmi,

Have a read of the following thread on Stack Overflow which solves the issue your having. http://stackoverflow.com/a/1678526

Nimmi Cherian
Nimmi Cherian
1,358 Points

Thanks Chris. I had actually gone through that thread before but somehow setting the path did not work. It did work this time. I had tried setting the 'path' system variable to point to my jdk\bin folder so that I would not have to set the path in command prompt each time, but that does not seem to work.

Chris Shaw
Chris Shaw
26,663 Points

Have you by chance restarted your PC between then and now as sometimes the PATH value won't update in real-time, aside from that without been able to see your PATH it's hard to say if something else is wrong.

Nimmi Cherian
Nimmi Cherian
1,358 Points

Restarting the PC worked. Thanks again Chris! Also, I had only set the path to point to the jdk folder and not the bin folder. I understand that it should point to bin.

Chris Shaw
Chris Shaw
26,663 Points

No worries, glad you're up and running

ryanjones6
ryanjones6
13,797 Points

Same issue: has any tested out Windows 10 with the team treehouse file supplied? And had success?