Quantcast
Viewing latest article 2
Browse Latest Browse All 5

How to Install Eclipse in Windows

This tutorial explains you ‘How to Install Eclipse in Windows’ or ‘How to Install Eclipse in Windows 7’ for Writing, Compiling and Testing your code.

Tools & Technologies Used:

1. Java SE 7 – JDK/JRE

2. Eclipse Juno – Version 4.2 as of this tutorial writing

Step 1: Install Java JDK/JRE:

Install the JRE, in order to use the Eclipse IDE.

You can check the Java installation instructions at – ‘How to Install Java on Windows’.

Step 2: Download Eclipse:

1. After the Java SE installation is completed, download the Eclipse from ‘Eclipse Download’ site.

2. Download the latest version of ‘Eclipse IDE for Java Developers’ – Windows 64 Bit for Windows 7 Operating System
The latest version of ‘Eclipse IDE for Java Developers’  shows up on top of the list in the Download page.

Image may be NSFW.
Clik here to view.
Eclipse Download e13558899903231 How to Install Eclipse in Windows

3. When you click on the Windows 64 Bit, that will take you to the download mirror site

Image may be NSFW.
Clik here to view.
Eclipse Mirror1 How to Install Eclipse in Windows

4. Download from mirror site, to a location in your machine.

Step3: Install Eclipse:

1. I downloaded ‘Eclipse_Juno_4.2’ into: C:Developmenteclipse folder.

Image may be NSFW.
Clik here to view.
Eclipse Download Folder1 e13558900772061 How to Install Eclipse in Windows

2. Eclipse is the folder where I have different eclipse versions.

3. Click on the ‘eclipse-jee-juno-SR1-win32-x86_64.zip’ file and extract the contents to a folder on to your machine. You can choose any folder to extract this package.

Image may be NSFW.
Clik here to view.
Eclipse Download Folder21 How to Install Eclipse in Windows

4. So I named the folder as Eclipse_Juno_4.2.

Note: You can have older version of eclipse and a newer version of eclipse on the same machine by placing the eclipse in different folders. See image above.

5. Your extracted eclipse folder looks like this.

Image may be NSFW.
Clik here to view.
Eclipse Folder1 How to Install Eclipse in Windows

Step4: Eclipse Desktop Shortcut:

1. Now go to your Eclipse folder and create ‘Eclipse Desktop Shortcut’ icon for the ease of access.

2. Right mouse click on ‘Eclipse.exe’ -> Send to -> Desktop (create shortcut)

Image may be NSFW.
Clik here to view.
Eclipse Desktop Shortcut1 How to Install Eclipse in Windows

Step5: Launch Eclipse:

1. Double click on the ‘Eclipse.exe’ file from the Eclipse_Juno_4.2 folder or the desktop shortcut that you may have created from.

Image may be NSFW.
Clik here to view.
Eclipse Launch11 How to Install Eclipse in Windows

2. After the Eclipse is Launched, Eclipse will ask you to select the Workspace to use.

3. Eclipse stores your projects in a folder called a Workspace.

4. Select the Eclipse default Workspace or change it to different folder where you want the Workspace to be created.

5. Once you are decided with the Workspace location (Example:C:\Users\username\workspace\JavaPractice),

then click on OK button.

6. Now the Eclipse launches with Welcome screen -> see image below

Image may be NSFW.
Clik here to view.
Eclipse Welcome e13558901893131 How to Install Eclipse in Windows

7. Now close the ‘Welcome’ screen, or click on the ‘Workbench’ icon that is on the top right most corner.

You will see the following ‘Eclipse Workbench Window’ in order to start coding.

Image may be NSFW.
Clik here to view.
Eclipse WorkBench e13558902519671 How to Install Eclipse in Windows

Tip:Reset Perspective

In some instances your eclipse workbench may be different than above screen, or you may be mistakenly clicked on the close icon of the tabs in eclipse and you would want to reset back to original Workbench perspective, then click on the ‘Window’ button on the top of the screen and click on the select action – ‘Reset Perspective’. That resets the eclipse to default Workbench.

Image may be NSFW.
Clik here to view.
Eclipse Reset Presepective1 How to Install Eclipse in Windows

Step 6: Create Java Project in Eclipse

1. If this is the first time you are creating a project in eclipse, choose “File” menu =>”New” => “Project”

Image may be NSFW.
Clik here to view.
New Java Project2 How to Install Eclipse in Windows

2. You will see a “New Project” dialog

Image may be NSFW.
Clik here to view.
New Java Project11 How to Install Eclipse in Windows

3. Select “Java Project” => Click on “Next”

4. It takes you to “New Java Project” dialog

Image may be NSFW.
Clik here to view.
Java Project1 How to Install Eclipse in Windows

5. In the “Project name” field => enter “JavaPractice”

6. Check “Use default location”

7. In the “JRE” section, Check “Use default JRE (currently ‘jdk1.7.0_09′)”

8. Click “Next”

Note: The default JRE you see here is same as the one, when we installed from,  How to Install Java on Windows.

9. Click “Next” and Click “Finish”

10. Your “Package Explorer” looks like this

Image may be NSFW.
Clik here to view.
Java Project Package Explorer1 How to Install Eclipse in Windows

Step 7: Write a Hello World Java Program

1. In the “Package Explorer” => Right click on the “src” folder =>New=> Class

2. “New Java Class” window opens

3. In “Package” field => enter any package name (helloworld) or leave as is to select the default package

4. In “Name” field =>enter “HelloWorld” => This is the java class name

Image may be NSFW.
Clik here to view.
Java New Class2 How to Install Eclipse in Windows

5. Click “Finish”

6. HelloWorld class file  opens on the new panel

Image may be NSFW.
Clik here to view.
Java New Class1 e13558903382051 How to Install Eclipse in Windows

Step 8: Compile the Java Program

Eclipse automatically compiles the Java statements. This is because of the “Build Automatically” option checked in Eclipse. You can un-check this option if you want to compile and build the code manually using “Ctrl+B”.

Image may be NSFW.
Clik here to view.
Java Compile1 How to Install Eclipse in Windows

Step 9: Execute the Java Program

To run the program, right click on the source file “HelloWorld.java” ⇒ Choose “Run As” ⇒ “Java Application”.

Image may be NSFW.
Clik here to view.
Java Execute e13558904127991 How to Install Eclipse in Windows

You can see the output on Console.

Image may be NSFW.
Clik here to view.
Console Output e13558904593471 How to Install Eclipse in Windows


Let me know If you have any questions.

If you liked this article, please share this article on Facebook and Google+.


How to Install Eclipse in Windows is a post from: TEKDigest

The post How to Install Eclipse in Windows appeared first on TEKDigest.


Viewing latest article 2
Browse Latest Browse All 5

Trending Articles