Skip to Content
Technical Articles
Author's profile photo Gang Wu

How to install SAP GUI for Java and Eclipse ADT on M1 Macbook

Recently I tried install SAP GUI for Java 7.7 into my M1 Mackbook Air. I’d like to share the steps.

JDK

Standard JDK doesn’t support M1 chip yet. We need find other ways for java JDK

1. Open JDK : https://openjdk.java.net/

2. SAPMachine: https://sap.github.io/SapMachine

I have installed both JDK, and both of them are working to install SAP GUI and Eclipse. You may choose one of the JDK to go ahead, simplest way is with OpenJDK.

Install Open JDK

for my testing the latest version of Open JDK can be used for SAP GUI client, suggest to install from Homebrew:

$ brew install openjdk

After installation, check java and java home

$ /usr/libexec/java_home -V
$ java --version

You will find the arm64 version Open JDK17 has been installed

Install SAPMachine (alternative)

download SAPMachine from https://sap.github.io/SapMachine, choose the MacOS aarch64 version SAP Machine 17 to download

After download, you can open the file and copy the content to local folder,  for example : /opt/jdk , structure like below:

Next , edit .zshrc file and add java home and path for SAPMachine

$ open ~/.zshrc

Append below information to the open file

export JAVA_HOME=/opt/jdk/sapmachine-jdk-17.jdk/Contents/Home
export PATH="/opt/jdk/sapmachine-jdk-17.jdk/Contents/Home/bin:$PATH"

Now check the java version , it come to SAPMachine now:

Note : you can also use Homebrew to install SAPMachine as well. but I noticed the homebrew installed version is for X64 instead of AArch64

SAP GUI for Java

In early version of SAP GUI for Java, we need install Open JFX to support the user interface of SAP GUI installation.  which means you need set the Module path of JFX at the  Installation Option step. I understand in the late version of SAP GUI for Java 7.5 and the new 7.7, SAP Machine and JFX are embedded in the installation files, you don’t need install Open JFX now.

So it’s a out of box installation and you just follow the installation guide step by step:

Installation

Navigate to the installation file path and run java command:

$ java -jar PlatinGUI-MacOSX-7.70rev1.jar

Note:  I noticed the dmg file under installation path cannot be used , it might because of the M1 Chip difference with Intel Chip.

You will see the installation guide screen and go ahead

you can leave it no change in this screen or choose your own location

Ideally you could see success screen below:

Execute

Find SAP Icon from Apple Launchpad, and double click

Create a new connection,  configure from Advanced tab , and put the connection string like below:

replace host name/IP and systemName with your system value.

please ref this good article for connection string detail:

SAP GUI For Java Connection Strings

Now you can login to enjoy your SAP GUI for java

Eclipse and ADT plugin

 

Eclipse supportes the M1 chip now, you may download the latest version (2021-09) from official website.

I would suggest to install through homebrew:

$ brew install --cask eclipse-java

After installation , you can find it from Apple Launchpad and run from there:

Note: Eclipse use it’s own JRE to start the IDE. You can also point to other JDK to start Eclipse by changing the info.plist file , uncomment the -vm parameter.

Go into the eclipse, follow the steps on https://tools.hana.ondemand.com/ to install ADT tools

After install ADT successfully, you can create a new ABAP project by choosing the SAP instance which configured in SAP GUI for Java

Follow the steps to create the ABAP Project, you are OK to use Eclipse ADT to connect to SAP instance.

Summary

Run SAP GUI for Java and Eclipse ADT is more and more easy nowadays on Apple Laptop. Basically it is out-of-box installation and you will feel almost no difference than on Windows.

Hope you enjoy your SAP journey on Apple M1 laptop !

 

 

Assigned Tags

      22 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Faqhruel Test
      Faqhruel Test

      Hi GangWu,

      i have an SAP installed on my MBA M1 but i cant do the connection to my company Server.

      Please help:

      system ID : PRD

      group server : Public

      messege server : gemsprd.intra.tm

      Author's profile photo Gang Wu
      Gang Wu
      Blog Post Author

      Hi , would you like to try this string? maybe you need check your port number to replace 3602 below

      /M/gemsprd.intra.tm/S/3602/G/Public

      Thanks

      Gang

      Author's profile photo Per Åge Themte
      Per Åge Themte

      Gang Wu ! Thanks for this guide! I've just unpacked my brand new MBP and have installed Eclipse 2021-11 and SAP GUI 7.70. I downloaded JDK17 from Java.

      The issue I'm facing is that eclipse starts and I can download all SAP tools, but I get this error now:

      ABAP communication layer is not configured properly. Consult the installation guide or download page for further details.
      JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path: /Users/perage/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

      Any tips?

      Author's profile photo Gang Wu
      Gang Wu
      Blog Post Author

      Hi  JDK17 from JAVA/Oracle is not supported. please use open JDK or SAP Machine instead.

      Author's profile photo Gang Wu
      Gang Wu
      Blog Post Author

      Hi JDK from Oracle Java is not supported. (JCO is not a part of Standard JDK now). please use Open JDK or SAP Machine instead.

      Author's profile photo Maarten den Hartog
      Maarten den Hartog

      Hi Gang Wu,

      Thanks for your guide. My Gui is working fine! but I have the exact same error as described above in Eclipse about JCO. I tried both with openjdk and sapmachine but it still gives this error. I even tried to download SAP JCO from SAP but there is only one available from intel. Do you have any other suggestions?

       

      Update: I found out its because of ARM eclipse 2021-12. That gives the error (There is no sap JCO on ARM yet). If you install eclipse 2021-09 (or 2021-12 X64 version), it works like a charm.

      Author's profile photo Amba Bisht
      Amba Bisht

      Hi Gang Wu,

       

      Thanks for this detailed steps. I am getting below error while installing SAP G

      Failed to install native resource : Darwin-localstart.jar

       

      The command I run  java -jar PlatinGUI770_3-80004695.jar as I see this jar file in my local for SAPGUI.

      Please assist.

      Author's profile photo Gang Wu
      Gang Wu
      Blog Post Author

      hi , please make sure you got the correct MACOS version of Jar file.  I used to fail to install because I used the old Macos version or Linux version Jar.

      Author's profile photo Amba Bisht
      Amba Bisht

      Hi Gang Wu,

       

      I was able to install SAP GUI successfully, but I am not able to add any server in it, in windows it gives all the available servers with searched name (like AB1) and we can choose the desired one or can add manually if we have host and instance details. That is missing in mac.

      Do you have any idea how to fix it.

      Regards,

      Amba Bisht.

      Author's profile photo Min-Chian Liu
      Min-Chian Liu

      I'm getting the following error:

      Release 753
      Component SNC (Secure Network Communication), version 6
      rc = -1, module /net/usr.delivery/SAPGUIForJava_760_REL/bas_753_REL/src/krn/snc/sncxxdl.c, line 462
      Detail dlopen("sncgss.dyld") FAILED
      "dlopen(sncgss.dyld, 0x0001): tried: 'sncgss.dyld' (relative path not allowed in hardened program), '/usr/lib/sncgss.dyld' (no such file)" (errno=2,No such file or directory)
      System Call dlopen

      Can you please let me know where I can get the 'sncgss.dyld' file?

      Author's profile photo Peter Asigbetse
      Peter Asigbetse

      Thanks for the guide Gang Wu I installed SAP Machine (sapmachine-jdk-17.0.1.jdk) and Eclipse 2021-12, edited the info.plist:

      <array>
      <!--string>-keyring</string>
      <string>~/.eclipse_keyring</string-->
      <string>-vm</string>
      <string>/Library/Java/JavaVirtualMachines/sapmachine-jdk-17.0.1.jdk/Contents/Home/bin/java</string>
      </array>

      but get this error when starting eclipse. I can't find any sapjco file anywhere on my machine. Any ideas?

      ABAP communication layer is not configured properly. Consult the installation guide or download page for further details.

      JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path: /Users/xxx/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

      Thanks.

      Author's profile photo Peter Asigbetse
      Peter Asigbetse

      As mentioned by Maarten den Hartog the issue was using the latest eclipse 2021-12 which does not work. This was resolved with 2021-09 though only the x86_64 version is available but it works!

      Update: Since the initial install of ADT 2021-09 I've updated through eclipse and now I'm on 2021-12 and all still working.

      Author's profile photo Sauranil Dey
      Sauranil Dey

      Hi Gang Wu,

      Thank you for the blog. It was very helpful while setting up SAP GUI and Eclipse on Mac.

      Regards,

      Sauranil

      Author's profile photo Vasudevan Rajagopalan
      Vasudevan Rajagopalan

      Hi Gang Wu,

      I have the newest Macbook Pro M1 machine. I was able to download the SAP GUI 7.7 Rev 4 from SAP and install the GUI. However, I am missing the multi select and F4 search options when I have to run custom programs or search custom tables. Am I missing something? When I right click inside this area, it comes with page setup and print options which tells me that this is flat page view.

      Search%20screen

      Search screen

      Author's profile photo Fulvio Brambilla
      Fulvio Brambilla

      Hi! Thanks for the detailed steps!

      I installed eclipse for Apple Silicon but I can't connect to SAP because of the missing of sapjco3.jar for apple M1 platform. There are some hope to have this file for M1? 🙂 thanks!

      Author's profile photo Sachin Navada
      Sachin Navada

      Hello Gang,

      Thanks for the blog. It is indeed very helpful for MacBook M1 users. I managed to install open JDK file and link it to SAP machine. I am stuck with the step SAP GUI WITH JAVA and I am unable to proceed further. Can you please help me ?

      1.How and where can I find SAP GUI V7.70 ? I know with S-User ID it is possible to download from SAP portal but I am not allowed to use my company provided S- user id. Is there any way to get this file ?

      2.In the installation step of SAP GUI FOR JAVA, where should the .jar file be located? Is it not required to specify complete path of the .jar file in Java command ?

      3. Do you think SAP GUI V7.50 can be installed on M1 Pro MacBook ?

      Looking forward for your response. Thank you in advance !

      Sachin

       

      Author's profile photo Chinmaya Jena
      Chinmaya Jena

      Hi,

       

      Thanks I have installed GUI7.7 in mac big sur M1 air laptop.  I could not install 2021-09 installer normally as terminal says its completed but nothing happened after that. i don't have brew in this laptop. please reply.

      Author's profile photo SaiNithesh Gajula
      SaiNithesh Gajula

      Hi Gang Wu

      Thanks for your blog. It is really helpful. I can able to install Eclipse and SAP GUI for Java as well.

      I am facing below error when I open eclipse ofter installing ABAP ADT tools. Please help me in fixing this issue. Also attached jdk version screenshot as well. Do let me know if you need more details

      System - Macbook Pro M1 chip,

      OS - MacOS Monterey

       

       

      Regards,

      Sai Nithesh

      Author's profile photo Gleb Kuzmin
      Gleb Kuzmin

      I wish SAP will make a proper GUI for Mac one day. However I am not holding my breath. GUI for Java is very limited and crippled product. It might run some simple transactions but it is completely useless if you work with BW for example - once you run any "complex" tcodes like RSA1 it just suggesting you to use windows client instead right in the error message.

      Author's profile photo Emilio Kafie
      Emilio Kafie

      Great article, it worked 100%,

       

      thanks,

      Author's profile photo Amarjeet Kumar
      Amarjeet Kumar

      Hi Gang Wu ,

      I am facing a strange issue.

      I installed SAP GUI 770 on my MBA M1. I am able to login to my SAP system. But the problem is if I stay idle on any screen for for 4-5 seconds, it crashes and close the session with message "Connection closed".

      I have attached the error message screenshot for reference.

      Connection%20closed%20issue%20on%20MBA%20M1

      Connection closed issue on MBA M1

      Any help would be greatly appreciated.

      Thanks.

      Amarjeet

      Author's profile photo Rajan Thomas
      Rajan Thomas

      Worked Perfectly

       

      Thanks

      RT