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 trialNimmi Cherian
1,358 PointsProblem 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
26,676 PointsHi Nimmi,
Have a read of the following thread on Stack Overflow which solves the issue your having. http://stackoverflow.com/a/1678526
ryanjones6
13,797 PointsSame issue: has any tested out Windows 10 with the team treehouse file supplied? And had success?
Nimmi Cherian
1,358 PointsNimmi Cherian
1,358 PointsThanks 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
26,676 PointsChris Shaw
26,676 PointsHave 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
1,358 PointsNimmi Cherian
1,358 PointsRestarting 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
26,676 PointsChris Shaw
26,676 PointsNo worries, glad you're up and running