Ready to Install Eclipse on Windows:
In this tutorial we are going to install Eclipse software on windows operating system and configure it to run Java programs.
This tutorial works fine for all version of windows operating system (OS) like Windows 8, Windows 7, Vista and Windows XP for both 32-bit and 64-bit versions.
For the first step, know which version of operating system your computer is running. That is, 64-bit version or 32-bit version.
Download Required Software to Install Eclipse:
Download Java JDK Setup File:
To make eclipse to run java programs we need to download 2 software, one is Java and other one isEclipse.
In java, we are going to download Java Development Kit (JDK). To download jdk visit this page and scroll down little you will see 3 options like JDK Download, Server JRE Download and JRE Download.
All we need to do is, select first one. That is, JDK Download and click on Download button.
Now you will be taken to other page. In that page choose “Accept License Agreement” option and then look for Windows x86 and Windows x64 and click download button according to your OS version.
For me, I’m having 64-bit OS version so I downloaded windows x64 setup file.
Now we have downloaded java software (JDK) to our system. Next we have to download Eclipse software.
Download Eclipse Software:
Now we need to download Eclipse software. You can download eclipse software by visiting this page. You will see two versions of eclipse. That is, Eclipse Standard and Eclipse IDE for Java EE Developers.
I recommend you to download Eclipse IDE for Java EE Developers version.
To download that, just choose 32-bit or 64-bit setup according to you computer version. Once you click on any setup link, it will take you to the next page where it contains download link.
In this page look at right side of that page, you will see Other options for this file column. In that, choose Direct link to file to begin download of eclipse software.
Now we have downloaded Java JDK software and Eclipse IDE for Java EE Developers software on our PC. It’s time for installation now.
Installing Java and Eclipse Software:
Installing Java Software:
Run the JDK setup. When you run the setup copy the path of the installation directory to notepad. We will need this later. In my case it is
C:\Program Files\Java\jdk1.7.0_45\
Now we installed Java software. Our next step is to set PATH and CLASSPATH for it.
Setting Path and CLASSPATH for Java:
We have to set Path and ClassPath for Java to work. Follow the below steps to do so.
1. Open windows explorer by pressing Win+E key on your keyboard
2. Now in that window, Right-click on My Computer (This PC on Windows 8) and choose Properties option
3. Click “Advanced system settings” and choose “Advanced” tab and then click on “Environment Variables…”
4. In System variables click New… button and fill
Variable name: PATH
Variable value: C:\Program Files\Java\jdk1.7.0_45\bin;
after filling press ok button.
Tip: Now use the copied path during installation here. Make sure you are pasting bin directory path, not the copied path.
Note: In System variable look for Path variable. If you found PATH variable, select it and click edit button and fill the above data. In variable value just add ; before adding new path.
Ex:
C:\Program Files\Java\jdk1.7.0_45\bin;C:\Program Files (x86)\QuickTime\QTSystem\
If you don’t find Path variable then you create new one.
5. Now we need to set Class Path for Java. To set Class path, go to User variables and click New…button
Now in pop-up window enter
Variable name: CLASS
Variable value: C:\Program Files\Java\jdk1.7.0_45\lib
Tip: Now use the copied path during installation here. Make sure you are pasting lib directory path, not the copied path.
and click OK and again click OK to close Environment Variable window.
Now we set path and classpath for java in windows. It’s time for us to install Eclipse.
Eclipse Installation:
Extract the downloaded Eclipse Zip folder to install eclipse. Here we don’t get any setup file to install. All we have to do is just extract the zip folder and configure eclipse.ini file to start using it. You can extract this eclipse folder on any location you want.
Once you extract that folder, open eclipse folder. In that, you will see eclipse.ini file. Open that file.
Here in that file we need to add two lines of code above -vmargs-vm
C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe
After adding that argument, save and close that file.
Tip: Now use the copied path during installation here. Make sure you are pasting javaw.exe file location address which is located in bin directory, not the copied path.
Check my eclipse.ini screenshot below after adding -vm argument.
Now open you eclipse software to run java programs. It’s time for you to start coding.
No comments:
Post a Comment