Drakan
2008-09-21 09:04:13
Hey and welcome to my tutorial about Setting your Environmental Variables for java. This is a very important step for running many java applications.
Pre) Make sure you have the latest jdk and jre. You can download them here:
1) Right click My Computer and select Properties.
2) Tab over to Advanced and click Environmental Variables.
3) Click new.
4) For Variable Name put PATH.
5) For Variable Value put the path to your jre/bin. It will look like: "C:/Program Files/Java/jre1.6.0_07/bin" without the quotes. Now click OK.
6) Click new again, and for name put CLASSPATH. For value link to your jdk/bin. Again it will look something like: "C:/Program Files/Java/jdk1.6.0_07/bin" without the quotes.
7) Click OK and go to start>run. Type cmd and press enter.
8) In the cmd box type java -version and it should return your version correctly!
Pre) Make sure you have the latest jdk and jre. You can download them here:
1) Right click My Computer and select Properties.
2) Tab over to Advanced and click Environmental Variables.
3) Click new.
4) For Variable Name put PATH.
5) For Variable Value put the path to your jre/bin. It will look like: "C:/Program Files/Java/jre1.6.0_07/bin" without the quotes. Now click OK.
6) Click new again, and for name put CLASSPATH. For value link to your jdk/bin. Again it will look something like: "C:/Program Files/Java/jdk1.6.0_07/bin" without the quotes.
7) Click OK and go to start>run. Type cmd and press enter.
8) In the cmd box type java -version and it should return your version correctly!