Eclipse Plugin for Managing Jelastic PaaS Environments from IDE

| October 9, 2018

Eclipse is an open-source extensible integrated development environment (IDE). It has a well-designed and extensible architecture and allows anyone to build solutions that integrate seamlessly with the environment and other tools.

Jelastic team has also created a dedicated plugin for Eclipse development platform. It represents a set of software development tools, that simplifies the process of applications development at Eclipse IDE, where they are handled in the form of projects (Java EE) at Jelastic Platform.

Within the instructions below, you can find out in details how to install the plugin, manage Jelastic environments and deploy your projects through Eclipse.

Eclipse Plugin Installation

1. Open the Eclipse Marketplace page with Jelastic PaaS Plugin in a browser.ide

Click on and drag the plugin installation button (circled in the image below) into your running Eclipse workspace.

2. In the opened frame you can check and edit the list of installed software. In our case, there is only Jelastic Eclipse Plugin listed, so just click on Confirm.paas
3. At the next step, you’ll need to read and accept the license ide

Click on Finish in order to proceed with the installation.

4. If you receive a security warning, click the Install anyway button to proceed and wait a minute for this operation to be completed.javascript ide
5. Restart your Eclipse IDE by clicking Restart Now on the last frame to apply the changes and finish the installation.eclipse ide for java developers

Authentication with Jelastic Account Credentials

The next step is to connect the plugin with your account at a platform. For that, navigate to Window > Preferences > Jelastic Preferences.

In the opened Eclipse tab, fill in the Login and Password fields with the corresponding data and either select the required Jelastic hosting Provider from the list of available ones (for Public Cloud) or type the Custom host manually (for Private Cloud).eclipse java ide

Select the Apply and Close button to confirm the entered data.

That’s all the required configurations! Now, having the Jelastic Eclipse plugin installed, you can manage Jelastic environments and deploy new projects easily without switching between IDE and browser.

Eclipse Plugin Management

Before proceeding further with the new projects deployment, consider the basics of remote Jelastic environments management through Eclipse IDE.

1. Navigate to the Window > Show View > Other section.

Here, you can notice that Jelastic Cloud Platform category has been added to the list.eclipse plugin

Expand this menu item and Open the Jelastic view.

2. In the opened tab, your current Jelastic environments with the applications deployed can be viewed (obviously, only Java-based ones will be displayed).platform as a service paas

Here, they can be quickly managed through the context menu (called with the right mouse button click) by choosing the needed option: Start, Stop or Refresh.

3. You can Get logs for a particular node and view them directly in Eclipse IDE.plugin eclipse

Now, as you are aware with the key environment management operations the Jelastic Eclipse Plugin provides, let’s consider how to deploy a new project into the Cloud directly from your IDE.

Eclipse Plugin Application Deployment

To start with, you should notice that for the ability to deploy projects from Eclipse to Jelastic, they should be created as Dynamic/Static Web Projects.

A new one can be created through the File > New > Project wizard:paas environment

Tip: In case you don’t have such options, install the appropriate Web, XML, Java EE and OSGi Enterprise Development plugins first (can be accomplished by means of the Help > Install New Software menu).manually install eclipse pluginAfter the plugin is installed, you may notice new Jelastic-dedicated elements being added to your Eclipse development environment interface. They are intended to implement the possibility of a new project deployment to the remote environment.

So, let’s consider the provided functionality in more details.

1. At the Eclipse panel, a new button with Jelastic logo appears, which contains the expandable drop-down menu with the Deploy and Deploy as options:

  • Using the Deploy option, you can redeploy the current project to the environment under the same context, that was previously used for this project deployment.
  • If the application hasn't been deployed anywhere before, the Deploy as option should be used. In this case, window with the list of existing Java environments at your account will be opened for you to choose the project, environment, and context for deployment.

2. Also, deployment of an application can be initiated by selecting the corresponding Eclipse project within the Project Explorer section and choosing either the Deploy project to Jelastic or Deploy project to Jelastic as line from its context menu:ide eclipse

Herewith, the implemented functionality is the same as for the corresponding options, described above.

After the installation of Jelastic Eclipse IDE plugin, you can easily manage, develop and deploy your applications without switching between the IDE and the browser. So do not lose the time and get started now at one of the available service providers.