Skip to Content
Technical Articles
Author's profile photo Manasi B

Installing and configuring Eclipse for ABAP Development Tool

Introduction

It has been a while since I installed Eclipse, but when I had searched at that time, I had not found a detailed blog describing the installation of Eclipse for ABAP Development Tool(ADT). I was successful in installing the Eclipse for ADT, even though I did not know the ABCs of system ‘path variables’ or JavaRuntime(JRE). So, I am writing this blog for all the people who are in the same boat.

Before diving deep into the technical details, let me throw some light as to why we need to do this. ABAP Development Tool(ADT) is an Eclipse based tool provided by SAP. You will need ADT if you have to work on the HANA CDS Views. Even though, CDS views are embedded into the ABAP Dictionary, there are some differences in the features available between the Eclipse and the Data Dictionary environments. You will get a better idea if you go through this blog. I am elaborating all the steps I followed and the troubleshooting I did for a successful installation of Eclipse for ADT.

 

Steps for the Installation

The following is the Step-by-step installation of Eclipse for ABAP development Tool on Eclipse.

  1. Install JAVA

https://www.java.com/en/

  1. Next, Install Eclipse for JAVA developers

https://www.eclipse.org/downloads/packages/

Pay attention to what your system configuration is? 32 bit or 64 bit. Install accordingly.

  1. Extract eclipse and cut the Eclipse folder

I created folders SAP\ADT in the ‘Program files’ in ‘C:\’ drive. So, the path looks like:

‘C:\Program Files\SAP\ADT’ and pasted the Eclipse folder here.

And created a desktop shortcut.

 

  1. When I tried to run the Eclipse (short on my desktop), I got this error:

Eclipse Error

  1. To solve this, install JRE from this link: https://www.oracle.com/java/technologies/javase-jre8-downloads.html
  2. To maintain path variable for this JRE:
  • Go to ‘This PC’ and right click and click on ‘Properties’

PC%20Properties

PC Properties

  • Go to Advanced system settings

Advanced%20Settings

Advanced Settings

 

  • Click on ‘Environment Variables’

Environment%20Variables

Environment Variables

  • And click on NEW

You%20should%20give%20the%20path%20where%20the%20JRE%20is%20in%20your%20system.

You should give the path where the JRE is in your system.

  • The path is my system looks like

C:\Program Files (x86)\Java\jre1.8.0_251\bin
to give you some idea.

  • This solved the ‘JAVA was started but returned exit code = 1’ error

 

    8. Now, start the eclipse application and select a directory for workspace. You may select the    checkbox if you don’t want to be asked again.

Launch%20Eclipse%20and%20select%20Workspace

Launch Eclipse and select Workspace

  1. Now go to Help…Install New Software

Work with https://tools.hana.ondemand.com/latest

And click on Finish.

  1. Then open perspective ‘ABAP’. Click on ABAP and click on OPEN.

Then I encountered this error after I tried logging into the SAP ABAP system:

Microsoft%20Visual%20C++%20Error

Microsoft Visual C++ Error

  1. I found out that I had to install MS Visual C++ from this link:

https://www.microsoft.com/en-us/download/details.aspx?id=40784

Download%20MS%20Visual%20C++%20DLL%20from%20this%20link

Download MS Visual C++ DLL from this link

And then I was able to finally open the SAP system from Eclipse.

 

I hope this blog made it easier for you to troubleshoot all the issues while installing Eclipse for ADT. Please leave any comments or suggestions you might have.

PS: I have written this blog for Windows PC. These steps might differ for other OS.

Assigned tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jaime Rodríguez Capote
      Jaime Rodríguez Capote

      Hi Manasi, it is not necessary to add a Windows system variable to set the path to Java.

      You can change the eclipse.ini file to specify the path to executable under -vm:

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Hi Jamie - Thanks for leaving a comment. I am no expert in this, but I read somewhere that it not a good idea to change an Eclipse file directly. Not sure about the authenticity of the information though.

      Best,Manasi

      Author's profile photo Michael Keller
      Michael Keller

      Hi,

      thanks for sharing your experience. If you are interested, check the "ABAP Development Tools for Eclipse info hub". There are more ressources about ADT linked. Hope it will help you. I will add your blog to the collection.

      Best regards

      Michael

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Thanks Michael! 🙂 I will definitely check it out.

      Best,Mansi

      Author's profile photo Gaurav Karkara
      Gaurav Karkara

      Thanks for the effort to write this blog. It will help many!

      Gaurav

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Thanks Gaurav! 🙂

      Best,Mansi

      Author's profile photo Matthew Billingham
      Matthew Billingham

      A couple of points.

      1. Rather than use Oracle's Java runttime, use SAP's. https://sap.github.io/SapMachine/ I had some issues with Oracle's a few weeks ago. I was developing a plugin for ADT in Java, and then suddenly, the debugger stopped working! Removing Oracle's Java from my system and replacing with SapMachine fixed the issue. Also, SapMachine is open source, and Oracle's Java isn't.
      2. You don't need Eclipse of Java developers - unless you plan to do Java development. Here https://blogs.sap.com/2019/06/07/installing-lean-eclipse-with-adt/ I discuss installing just what you need.
      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Thanks for the feedback, Matt. Yeah I agree, SAP Machine would be better.

      Author's profile photo Pratibha Aggarwal
      Pratibha Aggarwal

      Hi Mansi,

      Thanks in advance... !!

      While installing ADT I am getting below mentioned error:-

      Unable to read repository at https://tools.hana.ondemand.com/latest/content.xml.
      Unable to read repository at https://tools.hana.ondemand.com/latest/content.xml.
      sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

       

      Please help me in this.

      Thanks,

      Pratibha

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Hi Prathibha,

      Sorry I am not aware of this problem. May be you could try posting it in the forum.

      Thanks,Manasi

      Author's profile photo Mohammad Adil Ali
      Mohammad Adil Ali

      Hi manasi,

      i followed the exact steps mentioned in the blog but still getting the error.

      After installing  MS Visual C++ ,do we need to place the file in a specific folder or just keeping in download folder is okay.

       

      Please help.

      Adil

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Hi Adil,

       

      Very sorry for seeing your question so late. Hope your issue has got resolved by now :).

      Still to answer your question, I just did it normally how I download / install any other software

      It is not allowing to insert screenshots, I will try to explain as much as possible:

      1. I followed to the link https://www.microsoft.com/en-us/download/details.aspx?id=40784
      2. Next, clicked on download
      3. Next, selected 32 bit or 64 bit depending on your OS
      4. Then, downloaded .exe to Downloads folder and ran the file.

      That's it.

       

      Best,

      Mansi

      Author's profile photo Marco Mariani
      Marco Mariani

      Hello Community, the guide it is really helpful! However I need your help to solve this problem:

       

      someone can help me understand how to do ?

      Thank you in advance.

      KR

      Marco

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Hi Marco,

      Very sorry for seeing your question so late!

      Looking at the error, I feel it is related to the SAP Logon Landscape XML file.

      You may check the file doing Windows+R, then pasting ""C:\Users\<username>\AppData\Roaming\SAP\Common" replacing <username>.

       

      Best,

      Mansi

      Author's profile photo Anders Bang Christoffersen
      Anders Bang Christoffersen

      That helped me out better than the user guides

       

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Thanks Anders!

      Author's profile photo MANOJ RAVICHANDRAN
      MANOJ RAVICHANDRAN

      Thank so much

      Author's profile photo Manasi B
      Manasi B
      Blog Post Author

      Thanks Manoj!