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: 
manasi_b
Explorer
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 Properties




  • Go to Advanced system settings



Advanced Settings


 

  • Click on 'Environment Variables'



Environment Variables




  • And click on NEW




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 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 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 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.
25 Comments
JaimeRodriguez
Participant
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:

Michael_Keller
Active Contributor
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
manasi_b
Explorer

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

manasi_b
Explorer
Thanks Michael! 🙂 I will definitely check it out.

Best,Mansi
GK817
Active Contributor
Thanks for the effort to write this blog. It will help many!

Gaurav
manasi_b
Explorer
0 Kudos
Thanks Gaurav! 🙂

Best,Mansi
matt
Active Contributor
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.

manasi_b
Explorer
0 Kudos
Thanks for the feedback, Matt. Yeah I agree, SAP Machine would be better.
0 Kudos
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
former_member696062
Discoverer

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
Leduckduck
Active Participant
That helped me out better than the user guides

 
manasi_b
Explorer
0 Kudos
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
manasi_b
Explorer
0 Kudos
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
0 Kudos
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
manasi_b
Explorer
0 Kudos
Hi Prathibha,

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

Thanks,Manasi
former_member654904
Discoverer
Thank so much
manasi_b
Explorer
0 Kudos
Thanks Anders!
manasi_b
Explorer
0 Kudos
Thanks Manoj!
Thank you so much!
manasi_b
Explorer
0 Kudos
Thanks for your encouraging words, Marcelo!
Pavan_Golesar
Active Participant
0 Kudos
Thanks, There is latest post here

https://blogs.sap.com/2021/06/30/exploring-sap-btp-abap-environment/ (Part 1 for eclipse)

or

https://www.youtube.com/watch?v=dFdEUNeWjaQ

Hope this helps

PG

 
Michæl
Participant
❤️ SapMachine with Eclipse !

SDKman (cli, api) may support with installing on linux.
vmohan79
Discoverer
0 Kudos
Check SAP Notes 3131747
ysolodovnikova
Explorer
0 Kudos
Thank you for such useful guide!
0 Kudos
Thank you. This is indeed a very helpful!