Eclipse For Java Developers

-->

Eclipse is a Java application, so the first step to set up Eclipse is to install the Java Run-time Environment. Install the Java Run-Time Environment. If you do not already have a desired Java Run-time environment on your computer, you will need to install one. You can go to the Oracle website to download it. You can choose to download either a JRE or a JDK.

How to Install Eclipse IDE 2020-12 for Java Developers. 1.1 How to Install Eclipse on Windows. Eclipse IDE for Java Developers addresses a particular group of developers. Firstly, the target developer should have a level of Java know-how, be familiar with Eclipse and look for an integrated. Eclipse is the most used Java development IDE and knowing Eclipse shortcuts not only improve your productivity but also makes you more efficient. You will have more time for things you like to do.

The Azure Toolkit for Eclipse provides functionality that allow you to easily create, develop, configure, test, and deploy lightweight, highly available and scalable Java web apps and HDInsight Spark jobs to Azure using the Eclipse development environment.

Note

The Azure Toolkit for Eclipse is an Open Source project, whose source code is available under the MIT License from the project's site on GitHub at the following URL:

Prerequisites

To complete the steps in this article, you will need to install the Azure Toolkit for Eclipse, which requires the following software components:

  • An Azure supported Java Development Kit (JDK)
  • An Eclipse IDE

Note

The Azure Toolkit for Eclipse page at the Eclipse Marketplace lists the builds that are compatible with the toolkit.

There are two methods of installing the Azure Toolkit for Eclipse: by accessing the Eclipse Marketplace, and by using the Install new software option on the Help menu. Both installation methods will be demonstrated in the following sections.

Eclipse Marketplace

The Eclipse Marketplace wizard in the Eclipse IDE allows users to browse the Eclipse Marketplace and install solutions. The following two options take you to the Eclipse Marketplace:

  • Drag the following button to your running Eclipse workspace. This button opens the Eclipse Marketplace with the Azure Toolkit for Eclipse already selected.

  • On the Eclipse IDE, click the Help menu, navigate to Eclipse Marketplace, search for 'Azure Toolkit for Eclipse', and click Install.

  1. An Eclipse Marketplace wizard will pop up with installation instructions, including a list of components that will be installed. Verify that all features are selected and click Confirm >.

    FeatureDescription
    Application Insights Plugin for JavaAllows you to use Azure's telemetry logging and analysis services for your applications and server instances.
    Azure Common PluginProvides the common functionality needed by other toolkit components.
    Azure Container Tools for EclipseEnables you to build and deploy a .WAR as a Docker container to a docker machine.
    Azure Explorer for EclipseProvides an explorer-style interface for managing your Azure resources.
    Azure HDInsight plugin for JavaEnables Apache Spark application development in Scala.
    Microsoft JDBC Driver 6.1 for SQL ServerProvides JDBC API for SQL Server and Microsoft Azure SQL Database for Java Platform Enterprise Edition 8.
    Package for Microsoft Azure Libraries for JavaProvides APIs for accessing Microsoft Azure services, such as storage, service bus, service runtime, etc.
    WebApp Plugin for EclipseEnables you to deploy your web applications as Azure App Services.
  2. In the Review Licenses dialog, review the terms of the license agreements. If you accept the terms of the license agreements, click I accept the terms of the license agreements, and then click Finish.

    Note

    You can check the installation progress on the lower-right corner of your Eclipse workspace.

  3. Once installation has completed, you will be prompted to restart the Eclipse IDE to apply the software update. Click Restart Now.

Install new software

You can install the Azure Toolkit for Eclipse directly from the Help menu in the form of new software.

  1. Click the Help menu, and then click Install New Software.

  2. In the Available Software dialog, type http://azuredownloads.blob.core.windows.net/eclipse/ in the Work with text box.

  3. In the Name pane, check Azure Toolkit for Java, and uncheck Contact all update sites during install to find required software. Your screen should appear similar to the following:

  4. If you expand Azure Toolkit for Java, you will see a list of components that will be installed; for example:

    FeatureDescription
    Application Insights Plugin for JavaAllows you to use Azure's telemetry logging and analysis services for your applications and server instances.
    Azure Common PluginProvides the common functionality needed by other toolkit components.
    Azure Container Tools for EclipseEnables you to build and deploy a .WAR as a Docker container to a docker machine.
    Azure Explorer for EclipseProvides an explorer-style interface for managing your Azure resources.
    Azure HDInsight plugin for JavaEnables Apache Spark application development in Scala.
    Microsoft JDBC Driver 6.1 for SQL ServerProvides JDBC API for SQL Server and Microsoft Azure SQL Database for Java Platform Enterprise Edition 8.
    Package for Microsoft Azure Libraries for JavaProvides APIs for accessing Microsoft Azure services, such as storage, service bus, service runtime, etc.
    WebApp Plugin for EclipseEnables you to deploy your web applications as Azure App Services.
  5. Click Next. (If you experience unusual delays when installing the toolkit, ensure that Contact all update sites during install to find required software is unchecked.)

  6. In the Install Details dialog, click Next.

  7. In the Review Licenses dialog, review the terms of the license agreements. If you accept the terms of the license agreements, click I accept the terms of the license agreements and then click Finish. (The remaining steps assume you do accept the terms of the license agreements. If you do not accept the terms of the license agreements, exit the installation process.)

    Note

    You can check the installation progress on the lower-right corner of your Eclipse workspace.

  8. If prompted to restart Eclipse to complete installation, click Restart Now.

Next steps

To report bugs or request new features, create issues on our GitHub repository. Or, ask questions on Stack Overflow with tag azure-java-tools.

For more information about using Java with Azure, see the following links:

Details
Written by Nam Ha Minh
Last Updated on 07 August 2019 Print Email
This tutorial helps you get familiar quickly with Eclipse - the most popular IDE for Java development. In order to use Eclipse effectively, you should get familiar and understand some key concepts and components in the IDE: Workbench, Workspace, Perspective, Editor, View and Toolbar.First, let’s see how to download and install Eclipse IDE.

1. Download and Install Eclipse

Eclipse IDE is available on major operating systems: Windows, Mac OS X and Linux. It supports both 32 and 64-bit CPU architecture. Eclipse IDE is a Java-based application so it requires JDK/JRE installed first.You can download and install Eclipse in one of two ways: using an installer or download a ZIP package.Download and Install Eclipse IDE using Eclipse Installer:In this way, you download a small program called Eclipse Installer. Run this program and choose a package you want to install:

Then the installer downloads and installs the selected package onto your computer.The benefit of using Eclipse Installer is that you can install any desktop package of Eclipse in one place, and it also creates shortcuts on desktop and Programs menu for you. Here’s the link to download Eclipse Installer (64-bit):Note that you need to choose a mirror site to download from.Install Eclipse IDE by downloading a ZIP package:In this way, you download a zip/tar file for a specific package and extract the file on your computer. Run the eclipse.exeprogram in the eclipse directory to launch the IDE:And if you want to have shortcuts on desktop and in Programs menu, you have to manually create them. Here’s the link to download the package Eclipse IDE for Java EE Developers:Note: Eclipse IDE depends on JDK/JRE so make sure that you have JDK/JRE installed on your computer. and configure the JAVA_HOME and PATH environment variables properly (See: How to set environment variables for Java using command line).The above package requires Java 8 or newer.

2. Workbench

A window instance of the IDE is referred to as the Workbench. A workbench window consists of one or more Perspectives. And a perspective contains Editors

Eclipse For Java Developers Vs Enterprise Java Developers

Eclipse download for windows 10 and Views.You can open multiple workbench windows simultaneously (via menu Window > New Window). For example, when you are working on two projects - you can open two workbenches - each for one project. But all workbenches are used for only one Eclipse for java developers download windows 32-bitWorkspace.Eclipse

3. Workspace

Workspace is a directory on your computer - where the projects are stored. You must choose a workspace when starting Eclipse:There can be one or more projects in a workspace - which means you can work with multiple projects simultaneously. However, you can work in one only workspace in a working session of Eclipse. And to switch to another workspace, click File > Switch Workspace from the main menu.Eclipse stores preferences separately for each workspace in the .metadatadirectory in the workspace’s root. That means each workspace has its own settings for layouts, JDKs, servers, etc.So you use a workspace to group related projects that share common settings. For example, you can create a workspace (create a directory) for developing an application that consists of several projects; a workspace for Swing projects; a workspace for Java EE projects; a workspace for Spring projects, and so on.The following screenshot shows multiple projects listed in the current workspace:

4. Perspectives

In Eclipse, a perspective provides initial layout that is organized to help programmers accomplish a task or work. Each perspective contains a different set of editors and views. For example, the Java perspective contains the following editors and views:

- Java Editors: for editing Java source files.

- Package Explorer: allows you to navigate the projects.

- Outline: displays the structure of source file in the active editor.

- Problems: shows errors, warnings and problems detected.

- Javadoc: allows you to preview Javadoc of a class, method, field…

- Declaration: shows declaration statement for the variable at the cursor position.

- Task List: displays tasks downloaded from a popular bug tracker tool like Bugzilla, Mantis…

Eclipse For Java Developers Ide (91 Mb)

The following screenshot is of a Java perspective:When you are working in the perspective, you and open more editors and views when needed, but initially a perspective contains a fixed set of editors and views. The toolbars and menu items are also changed according to the purpose of the current active perspective.And this is the Debug perspective that allows you to debug a running program:By default, Eclipse provides several perspectives, as shown below:You can see this list when opening a perspective from the menu Window > Perspective > Open Perspective > Other…For Java development, you use only few perspectives most of the time, e.g. Java, Java EE and Debug. If you use version control, then you will frequently switch to Git or Team Synchronizing perspectives.In Eclipse, you can switch among opened perspectives by clicking on the perspective icons in the toolbar or by pressing the shortcut Ctrl + F8. You can open perspectives in the same workbench window (default) or in new windows.Note that different perspectives can have different views but they all share the same editors.You can customize a perspective, e.g. arrange views and editors in the way you like, and save it as your own perspective.To reset the active perspective to its default layout, click Window > Perspective > Reset Perspective…

5. Editors

An editor allows you to edit a source file. For example, when you double-click a .javafile in the Project Explorer/Package Explorer view, a Java editor is opened in the editor area which is usually at the center of the workbench:Notice the gray border at the left margin of the editor area may show small icons to indicate errors, warnings, problems and information at the corresponding line.Each type of find can be opened with the associated editor. If Eclipse doesn’t have associated editor for a file type, it will try to open using an external program available in the operating system.There can be multiple editors opened and they are stacked in the editor area, but only one editor is active at a time. The name of the file is displayed in the title bar of the editor, and the asterisk (*) indicates that the editor has unsaved changes.In Eclipse, you can use the shortcut Ctrl + F6 to switch among editors.

6. Views

A view allows you to navigate the information in the workbench. For example, in the Project Explorer view, you can navigate the structure of projects in a workspace:A view also provides alternative representation to support an editor. For example, the Outline view displays structural elements of the source file in the active editor. So if you are editing a .javafile, it displays the classes, fields and methods of that file:Using the Outline view, you can quickly jump to an element in the source file.You can resize, move, minimize and maximize views in a perspective. A view can be detached from the workbench and becomes a floating window (right-click on a view’s title bar and click Detach).A view has a pull-down menu that offers actions allowing you to customize the representation of the view. You can access this menu by clicking on the down arrow at the top right corner of the view. For example, the following screenshot shows the pull-down menu of the Project Explorer view:To open a view in Eclipse, click Window > Show View. And to switch among opened views, press Ctrl + F7.

7. Toolbars

The last visual component I want to tell you in Eclipse is the toolbars. There are 4 kinds of toolbars in Eclipse:- Main toolbar: appears below the main menu, the main toolbar consists of buttons that are grouped into different sections: Open/create/save project, Run, Debug, Navigation, Search…The buttons vary depending on the current perspective.

a

- Individual view toolbar: a view can have its own toolbar in its title bar area or at the top-right corner. For example, you can see the toolbar of the Servers view in this screenshot:- Perspective switcher toolbar: this toolbar contains buttons that allow you to switch among opened perspectives in the workbench. You can see this toolbar at the right side of the main toolbar:It also contains a button (the left most one) that allows you to open the list of all perspectives.- View stack toolbar: this is a special toolbar which appears when you minimize a view in a view stack. The icons on this toolbar allow you to open an individual view in the stack. For example, here’s the toolbar appears when the Console view is minimized:So far you have got familiar with the key concepts and components in Eclipse IDE. By understanding them, you know how to use the IDE properly and effectively.

Other Eclipse Tutorials:


About the Author:

Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.