Powered by Blogger.

Lesson 2 : Setting up enivronment

Environment Setup on Your Local Computer
If you want to setup Java Development Environment on you local computer, then this section will guides you on how to download and setup Java on your manchine. Follow the instruction carefully :

First of all download Java SE Java which is freely available at Download Java SE . Choose the download version according to your operating system.
Link : Java SE 8 Archive Downloads
Now follow the instructions and run the .exe file you downloaded earlier. This will install Java SE on your machine. After that you have to set up environment variable on your machine.

Setting Up the Environment Variable on Windows 8 
I am assuming that your installation directory is c:\Program Files\java\jdk
Go to the Control Panel using the metro UI of Window 8.


Click More Setting in Control  on the left side.

Now search Environment Variables in Control Panel, and click Edit the system environment variables 



Click on Environment Variables



Under System Variables scroll down to the Path Variable. Select Path and click on Edit button.



On my computer the path of the bin folder of the JDK is C:\Program Files\Java\jdk1.7.0_02\bin
So I add  ;C:\Program Files\Java\jdk1.7.0_02\bin  in the path string.
Note : Don't forget to add ";" in the start of the above string.


So far so good. Click OK to finish. Now your machine is loaded with java. To check whether Java Developement Kit is installed with correct path variable, run command prompt on the machine and type the following command
javac -version
If you get the java version as shown below then you are successful.




0 comments:

Post a Comment