Before installing and running eclipse you would need to have jre or jdk installed and configured on your machine. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download jdk as highlighted in the figure below:
On the next page scroll down, accept the license and click on your version of windows, i.e. x86 or x64 as shown in the following figure:
After downloading click on the file. This will start the setup wizard. Leave the options as default and click next twice. This will install jdk on your machine. After few moments another window will appear asking to install jre. Click next again. Finally click on finish and you are done.
To check if everything is installed correctly. Go to C:\Program Files\Java and you would see two folders named jdk1.7.0_01 and jre7 as in the figure:
Now we'll set path to our jdk home directory in system's Environment Variables. To do that go to Windows -> start -> Computer, or if you don't find computer icon here, find your computer icon on desktop. Right click on Computer icon and select properties. In the control panel click on 'Advanced system settings' and then click on Environment Variables as shown in the figure below.
In Environment Variables dialogue box select path under System variables and click edit as shown in figure below:
In the filed variable value: go to the end of the string put a semicolon ; at the end and copy and paste the path to your jdk home directory. In my case it is C:\Program Files\Java\jdk1.7.0_01\bin. Check the right name of your directory. At the end it should look as shown in the figure below:
Click ok and you are done. To test whearther jdk is installed. Click press Windows key + R, and in the run window type cmd. like in the figure:
In the command prompt type java -version without codes, and you sould see the jdk version installed on your computer as in the figure below:
Now that you have installed and configured jdk on your machine, we'll see in the next step, how we download and install eclipse and set jdk as run time environment for eclipse. So, click Next.
No comments:
Post a Comment