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 trialKiem Ruach
Courses Plus Student 2,520 PointsI've been stuck trying to get the path correct for java runtime, but no matter what i do i just cant get past this
Is there a guide on treehouse on how to set up this java programming
4 Answers
Kiem Ruach
Courses Plus Student 2,520 Pointsok so i think the problem is deeper than just setting the enviorment im going to take the cmd lesson just to be safe
Grigorij Schleifer
10,365 PointsHi Kiem,
try this for Windows:
From the desktop, right click the Computer icon.
Choose Properties from the context menu.
Click the Advanced system settings link.
Click Environment Variables.
In the section System Variables, find the PATH environment variable and select it. Click Edit.
If the PATH environment variable does not exist, click New. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK. // you will need to choose a directory where you want to set it.
default directory is "C:\Program Files\Java\jdk1.6.0_17\bin"
Here a video:
https://www.youtube.com/watch?v=P6NeRfcJtdU
or this StackOverflow link:
http://stackoverflow.com/questions/1672281/environment-variables-for-java-installation
And here is a lesson about envirenment variables from treehouse:
Let us know if you need more assistance.
Grigorij
Grigorij Schleifer
10,365 PointsAnd here is a goog link for Mac:
http://stackoverflow.com/questions/18144660/what-is-path-of-jdk-on-mac
Kiem Ruach
Courses Plus Student 2,520 PointsOk so when i come to the system variables they are already set up, but when i open cmd and type the java command i get the system cannot find java
Grigorij Schleifer
10,365 PointsMaybe this video can help:
Kiem Ruach
Courses Plus Student 2,520 Pointsok so undid everything i tried to get the java enviorment right. when i typed javac into cmd line i get javac 1.8.0_73 am i ok to move forward? Or are there more steps i have to take?
Grigorij Schleifer
10,365 PointsHi Kiem,
Have you already compiled and run a java programm from the cmd successfully? If yes then you have the JDK (and JRE inside of it) installed correctly.
The java compiler (javac) is located inside the JRE (java runtime envirenment) that is located inside the JDK (java developement kit).
Let me know if something is wrong :)
Grigorij
Grigorij Schleifer
10,365 PointsGrigorij Schleifer
10,365 PointsI have done the "console foundation" lesson here on TH and was very impressed. But it is for Linux system. But you will find a lot in internet town :)