Can not run play web application with "(fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64'))" #11992
Replies: 3 comments 6 replies
-
Pretty sure sbt 1.2.8 is the problem here. Latest Play version 2.8 and sbt 1.7.2+ does work on M1 macOS. You need to upgrade to make this work. |
Beta Was this translation helpful? Give feedback.
-
After a quick test with Play version 2.8.20 and sbt 1.9.6+, I got this:
looks like Jna is not available for M1 |
Beta Was this translation helpful? Give feedback.
-
I ran into a similar issue where I didn’t want to modify the codebase due to the use of a bytecode enhancer. After upgrading my Mac from Intel to M4, I encountered a JNA exception, which I believe is due to using an older version of SBT (1.3.13) that doesn’t fully support Apple Silicon. I found a comment mentioning that upgrading the JNA JAR to version 5.8.0 didn’t cause any issues, so I manually replaced the existing JNA JAR with version 5.8.0 to update SBT’s dependency without changing the build itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, I have a legacy web application which runs in sbt + java 8, but could not be bootstrapped in Apple M1 Pro architecture.
Enviroment:
Chip: Apple M1 Pro
OS: macOs Sonoma
JDK: TencentKona-8
sbt: sbt 1.2.8
command: clean update package run
error message:
Since Sonoma is recently released system and pretty new, I didn't get useful information in Stackoverflow. Anyone can help resolve this problem?
Beta Was this translation helpful? Give feedback.
All reactions