Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
joltdx
Active Contributor
A new Eclipse version 2021-03 (4.19) was just released and what better way to celebrate than to make yet another blog post about installing a lightweight standalone version of it for ADT.

Based on the Installing lean Eclipse with ADT by the magnificent matthew.billingham, and Running ABAP in Eclipse from a USB stick powered by SapMachine by the awesome andre.fischer, I hereby take the liberty of making a new post combining those two.

This guide is for implementing a new lightweight installation of Eclipse and ADT in a new directory, using a separate SAP provided Java runtime for it.

If you're already running Eclipse and ADT and want to try this lighter version, you might want to keep your workspace safe separately during the installation, and convert it later.


A lightweight Eclipse is still not light though... Photo by Victor Freitas on Unsplash



Installing Eclipse


The official installation procedure suggests installing Eclipse IDE for Java Developers, but as Matthew so graciously shared with us, we don't need all that for running ADT.

Also worthy of a note is that as of the time of writing this, SAP does not mention officially supporting 2021-03 (4.19) for ADT, but my guess is that is just a matter of time. If you're willing to accept the risk, here's what we do:

Either use this direct link or navigate from elipse.org by clicking the Download button, then go to the  "Download packages" link below the "Download" button, then "Other Builds" in the "More Downloads" section.

Now we click 4.19 in the "Latest Download" section, and scroll down to Platform Runtime Binary and download the version for the platform you use. In my case it Windows.

After the download is complete, unpack the zip file into a folder of your liking. I chose C:\eclipse\, which gives me Eclipse in C:\eclipse\eclipse.

Installing the Java JRE


In order to run Eclipse, a 64-bit Java 11 runtime is required and there is a SAP provided OpenJDK for SAP customers and partners. It's call SapMachine, and the official repository is on GitHub.

It might be the case that you already have a running 64-bit Java 11 runtime on your machine and in that case this step is not strictly required. I'm not sure if there is any benefit from running this version in parallel in that scenario, but this is the SAP recommended way, and a nice way to have a standalone dedicated compatible runtime.

Download the SapMachine from the GitHub repository or through sapmachine.io.

After the download is complete, unpack the zip file into the unpacked eclipse folder from before and name it jre.

This is what the directory structure should look like now, I installed in my C:\eclipse directory and the jre directory is the renamed SapMachine jre:


Directory structure


If you want your Java in a different directory than jre, refer to this documentation.

Run it!


I typically create a new workspace at this point, since my current one has information also about ADT things and Add-ons that are not yet installed.

Inside the eclipse directory, C:\eclipse\eclipse in my case, there is eclipse.exe. Let's go ahead an run that one. You will be asked which workspace to use, I put mine in C:\eclipse\workspace.

Installing ADT


In order to install the ADT, the menu options to select is Help -> Install New Software.

The link to use https://tools.hana.ondemand.com/latest/. Put it in the Work with input field and click Add for good measure. Give it a name of your liking, I called mine ADT latest.


ABAP Development Tools is, aptly, the ABAP Development tools. The other three items may also be installed. Please refer to tools.hana.ondemand.com for more information of their uses and if they're relevant for you.

Choose (at least) ABAP Development Tools, and click Next 2 times, then Accept the terms of the license agreements and click Finish.

There may be a question about accepting a certificate and then a request to restart Eclipse. I recommend complying!

Installing the Marketplace client (optional)


In order to install optional additional add-ons for Eclipse, you would also need to install the Eclipse Marketplace Client. The link for the current version can be found by clicking the fourth icon from the left under the Install button. 🙂 For the versions in this document, it's this link.

The process is the same as for installing ADT: Help -> Install New Software, and use that link instead. Mark EPP Marketplace Client, Next, Next, Accept, Finish, Restart Now.

Installing Add-ons (optional)


We have the menu option Help -> Eclipse Marketplace now, where we can find additions for the Eclipse platform in general, and for ABAP in particular. Search for ABAP and you will find. This can be done at any time and is not required to get started.

(A note about dark theme later)

Tweaking and customizing (optional)


If you have an old workspace that you want to use, now might be the time to make a backup copy before converting and running it, in case the conversion of it is not working properly (which I've never experienced).

There is a lot of customizing possible in Eclipse. Choosing the views to have available and where to put them on the screen is a matter of personal preference and workflow, and could be a topic for a blog post of its own. And there will be links further down.

Dark Theme (optional)


One thing worth mentioning though is about the theme. I personally prefer a dark theme in general and also in Eclipse. There is an Eclipse built-in dark theme that can be set at Window -> Preferences -> General -> Appearance. This is also "supported" or at least, not officially discouraged by SAP. 🙂

It pretty good, there is matching syntax coloring for ABAP out of the box for it. I recommend that for the quickest route to the dark mode. For me however, I'm really bothered by the white divider lines in table views, which is an Eclipse thing and not ADT, so I chose another option (and I am willing to pay the price for it...)

A common, and I think the most popular, option is to install the add-on Darkest Dark. That one also has a good default syntax coloring for ABAP, but is also, allegedly, very bloated and not very "clean" technically (reference needed). That one can be found and installed in the marketplace.

But my personal preference is the open source Spectrum theme, also available through the marketplace. It does not have any default dark syntax coloring for ABAP, so it looks totally awful for ABAP at first. But if you're willing to do the work though, you can get it just the way you want it. Again it's personal preference, and this is what my syntax highlighting setup looks like:


Bonus points if you know where this method is from... 🙂


Relevant places for color settings in Eclipse are in Windows -> Preferences. Firstly General -> Appearance -> Colors and Fonts. And secondly ABAP Development -> Editors -> Source Code Editors -> ABAP Keyword Colors.

But how to ADT in Eclipse? (semi-mandatory)


Yes, that's a whole other topic. The marvelous keller.m put together this info hub repository on the topic. There are plenty of useful links so I will not fill this post with them as well. It's includes as well some recent blog posts with videos from the fantastic frdric.girod.

 

Now have fun!
15 Comments