Eclipse - SPLessons

Eclipse Installation for Java Development

Home > Lesson > Chapter 3
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Eclipse Installation for Java Development

Eclipse Installation for Java Development

shape Introduction

This chapter Eclipse Installation for Java Development demonstrates in detail about downloading and installing Eclipse for Java. There are many ways and steps to get Eclipse up and running and would be better if there was a single comprehensive installer. Following are the concepts covered.
  • Downloading Eclipse
  • Installing Eclipse
  • Workspace - Launching Eclipse

Downloading Eclipse

shape Description

Before downloading the Eclipse, pick up the target platform Linux/Mac/ Windows and make sure that the machine has a Java run time environment already installed, use either a 32-bit or a 64-bit versions of Eclipse and must have a JRE/JDK source that matches i.e.

Eclipse for Java Development

shape Description

In order to use the Eclipse for Java Development download the Eclipse from the official website link given below. http://www.eclipse.org/ By clicking the link, a page appears with a download link for Eclipse as shown in the image below, now click the Download button on the page in order to download the Eclipse for Java development. A page appears providing a list of Eclipse versions by clicking the download link button, select the preferred version and download the Eclipse by clicking on it as shown in the image below. It shows drop down box in the right corner of the download page to set the operating system on which eclipse is to be installed.choose from drop down box Windows, Linux and Mac. Eclipse is packaged as a zip file, so extract the zip file into preferred drive.

Installing Eclipse

shape Description

If the directory have a fairly long path, when the user unzip the downloaded files under Windows can get errors about path names being too long. In order to avoid such errors make sure that the default download directory is fairly deep on the hard drive that and first move this up fairly high on the hard drive before unzipping, and thereafter no errors about path names being exceeded. In order to install Eclipse, required a tool which can extract the contents of a zip file. The tools like PeaZip, IZArc, 7-zip etc. Now, Right click on the downloaded Zip file and extract all the files to the preferred directory to be installed by clicking Extract. The image below display the Eclipse files folder extracted to the particular directory given.

JRE/JDK Installation

shape Description

The JRE (Java Runtime Environment) and JDK (Java Development Kit) are mandatory In order to develop Java applications in Eclipse, so if the machine don’t have a JRE/JDK, make sure to download and install before launching the Eclipse. Follow the steps below in order to download and install JRE/JDK.

shape Step 1

Open the Eclipse official website, open the Eclipse versions downloads pages and click the link Install Guide as shown in the image below.

shape Step 2

Now, a page appears with a link for installing JRE/JDK sources, click the link as shown in the image below.

shape Step 3

By clicking the link, the page redirects to the link location providing three different JDKs for the client. Select the preferred JDK as shown in the image below.

shape Step 4

Select one of the JDK and proceed by clicking, now the page redirects to the latest version of selected JDK, proceed by clicking the download link as shown in the image below.

shape Step 5

Click Accept the License Agreement and select the JDK that matches to the Eclipse version as shown in the image below.

shape Step 6

Select the downloaded file and run the file in order to install, by running the file a Setup window gets displayed, proceed by clicking Next as shown in the below image.

shape Step 7

A Custom Setup window appears providing some Optional features to be installed, client can change the features as per the choice and proceed by clicking the Next button as shown in the image below. Now the JRE/JDK successfully installed in to the machine and can launch the Eclipse for java development

Workspace - Launching Eclipse

shape Description

Immediately after lunching Eclipse, a window appears asking the drive to store the Workspace. A workspace is a collection of projects that are to be work with when launching Eclipse. A project can take any number of forms from a desktop executable, a library, a set of web pages, and more. If the client used to working with a product like Visual Studio, a workspace can be a little bit of an adjustment. Not all projects in a workspace have to be related and can take any approach that are like to creating a workspace. User can create a single workspace and create every programming project under that workspace. Eclipse is actually geared towards this approach. It has some additional tools like working sets, but working sets allow for convenient grouping to make it easy to work with a subset of the projects and can also create any number of workspaces. The work space can be set to default or changed to new folder location using the Workspaces Preference window as shown in the image below.

Summary

shape Key Points

  • The target platform and the JRE/JDK source are mandatory for installing Eclipse in order to develop Java projects.
  • The Eclipse zip file can be extracted using different tools like PeaZip, IZArc, 7-Zip etc.
  • Select the workspace target in order to save all the projects.