Technical Articles
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.
- Install JAVA
- 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.
- 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.
- When I tried to run the Eclipse (short on my desktop), I got this error:
Eclipse Error
- To solve this, install JRE from this link: https://www.oracle.com/java/technologies/javase-jre8-downloads.html
- 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
- Now go to Help…Install New Software
Work with https://tools.hana.ondemand.com/latest
And click on Finish.
- 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
- 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.
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:
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
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
Thanks Michael! 🙂 I will definitely check it out.
Best,Mansi
Thanks for the effort to write this blog. It will help many!
Gaurav
Thanks Gaurav! 🙂
Best,Mansi
A couple of points.
Thanks for the feedback, Matt. Yeah I agree, SAP Machine would be better.
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
Hi Prathibha,
Sorry I am not aware of this problem. May be you could try posting it in the forum.
Thanks,Manasi
<3 SapMachine with Eclipse !
SDKman (cli, api) may support with installing on linux.
Check SAP Notes 3131747
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
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:
That's it.
Best,
Mansi
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
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
That helped me out better than the user guides
Thanks Anders!
Thank so much
Thanks Manoj!
Thank you so much!
Thanks for your encouraging words, Marcelo!
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
Thank you for such useful guide!
Thank you. This is indeed a very helpful!