cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Commerce(2011.20) Build Error on M1(Apple Silicon) Macbook

senerkucuknane
Explorer
0 Kudos

Hi everyone,

I just got a m1 pro mac and am trying to get a project up and running, i am using commerce version 2011.20 and Azul Zulu OpenJDK 11 as jdk but i also tried to use Oracle JDK,AdoptOpenJDK. When i try to get a build with ant clean all i am getting errors in the compile step of the ant clean all, will attach the whole console log. Weird thing is i got the project as a zip from my other computer which uses ubuntu, if after unzipping i run ant all instead of clean all i got no errors so i believe the main issue is with compiling from scratch. I am new to macOS on it's own and this issues with apple silicon does not help. If anybody has an idea why this is happening i would greatly appreciate it.

console-log.txt

former_member634058
Active Participant
0 Kudos

Hi Sener,

Were you able to figure out and fix the issue? If not, can you please share your logs for 'ant clean all'. What I have found in the question and in the comments are logs for ant all and and clean.

Thanks.

Hi Sumit,

I was able to solve the issue, it was because of the computer language being Turkish, changing to English solved the issue. But there is still problems with updatesystem with Azul JDK, there is not any jco adapter compatible with m1 chip architecture so updatesystem gets an error. This could be resolved by using sapmachine jdk or openjdk but these run on rosetta 2 and thus the performance is horrendous. Hopefully SAP will fix this with a patch soon.

Accepted Solutions (0)

Answers (3)

Answers (3)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sener,

Sorry I was not aware that the download button for SAPMachine JDK 11 was missing, could you please try JDK 17 then.

Since I don't have a M1 machine to test, my suggestion is simply not verified.

senerkucuknane
Explorer
0 Kudos

Hi Samuel,

I tried with JDK 17 but the result is same.

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sener,

Please follow the link below for SAP Machine JDK 11.

SapMachine | An OpenJDK release maintained and supported by SAP

senerkucuknane
Explorer
0 Kudos

Hi Samuel,

If you have noticed there is not any download buttun that comes up after you selected these from the dropdown menus. So i don't think there are any available releases for aarch64. But as i have said, i have tried to use macOS x64 version but still got the same errors.

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

But looking at the log file, you were executing ant all, not ant clean all.

Let's see what happens if you run ant clean, and after that run ant all.

BTW Could you try SAP Machine JDK?

senerkucuknane
Explorer
0 Kudos

Hi Samuel,

ant clean all was the same that's why i did not attached that log. Now i am attaching the log where i first ran ant clean and then ant all.

I could not find any version for SAP Machine JDK for apple silicon, there were only x64 version and i already tried that result is the same. If there is any link for apple silicon version that you have i would be glad to try it.

console-log-clean-all.txt

senerkucuknane
Explorer
0 Kudos

Hi Samuel,

Did you get a chance to check out the logs ? i would appreciate any help on this.