This section provides an overview of what eclipse is, and why a developer might want to use it.
It should also mention any large subjects within eclipse, and link out to the related topics. Since the Documentation for eclipse is new, you may need to create initial versions of those related topics.
|3.8 and 4.2||Juno||2012-06-27|
To install Eclipse, go to the Eclipse Downloads Web page where there is usually a direct link to download the latest version of Eclipse. Starting Eclipse Mars (version 4.5), an installer can be downloaded which guides you through the installation procedure, as opposed to downloading the whole installation as a compressed file (this option is still available, however). There are also links to download old Eclipse packages.
Eclipse comes in several different packages that target different users as shown in the below screenshot from the installer. For instance, the Eclipse IDE for Java Developers contains basic tools that support developing, debugging and building Java applications, as well as basic support for version control such as a plugin that allows versioning projects using Git, while the Eclipse for Android Developers provides an environment for creating Android applications.
Once a package is selected, the next page allows the user to select the installation directory, along with other options. The following screenshot illustrates the procedure on a Windows machine.
Clicking the Install button will start the installation of the Eclipse package into that directory.
If the machine already has Java properly installed, Eclipse should launch fine and no configuration or setup is usually required. However, it is a good practice to change some configuration options for Eclipse, for example to specify in which JVM Eclipse should run, and to configure minimum and maximum memory for that JVM. To do so, a file called
eclipse.ini exists in the installation directory, where this startup configuration is located. This page contains details about how to configure Eclipse using that file.
Few of the eclipse classic versions don't come pre-installed with marketplace, this maybe installed using the following steps:
Marketplace update sites:
Oxygen - http://download.eclipse.org/releases/oxygen/ Neon - http://download.eclipse.org/releases/neon/ Mars - http://download.eclipse.org/releases/mars/ Luna - http://download.eclipse.org/mpc/luna Helios - http://download.eclipse.org/releases/helios Juno - http://download.eclipse.org/releases/juno/
From the tool-bar open the Java Perspective.
Right-click into the Package Explorer,
and from the menu select
New -> Java Project
In the upcoming dialog enter a project name, then click
Now you have the new project in your workspace.
Right-click on your project, and from the menu select
New -> Class.
In the dialog type in the class' name (it should begin with a capital letter),
also select the check-box
public static void main(String args),
Now you have the first Java file in your project. The editor will automatically open this new file.
main method type in some code to print
Right-click on your Java class, and from the menu select
Run as -> Java application.
Voila, you see the output of your Java program in the Console.
In the File menu, choose the 'Import...' option.
This opens up the Import dialog box, which asks for the type of project/file you want to import. For a basic Java project, choose 'Existing Projects into Workspace' from the 'General' folder.
Next, select the directory where the project(s) is located using the 'Browse' button. All projects that can be imported into Eclipse will show up in the 'Projects:' section. If the project has already been imported, it will still be displayed but the checkbox will be disabled.
You can also import projects directly from a compressed file by choosing 'Select archive file' and then clicking the 'Browse' button.
Once you click 'Finish' the project is now visible in your Project Explorer and ready to use.