Fork me on GitHub
#boot
<
2023-08-17
thomas10:08:15

Hi, I seem to have problems running boot on a MacOs M1.

(fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64'))

thomas10:08:27

any ideas on what I need to do?

thomas10:08:21

It suggest that I have a x86(64) jvm running

thomas10:08:59

ava --version
openjdk 11.0.20 2023-07-18
OpenJDK Runtime Environment Homebrew (build 11.0.20+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.20+0, mixed mode)

thomas10:08:05

but how do I tell?

thomas10:08:27

/opt/homebrew/opt/openjdk@11/bin/java: Mach-O 64-bit executable arm64

oyakushev11:08:49

That binary that you filed could be a proxy binary that finds and invokes the correct Java binary later

oyakushev11:08:18

Paste the output of /usr/libexec/java_home -V

thomas13:08:37

Matching Java Virtual Machines (2):
    20.0.1 (arm64) "Homebrew" - "OpenJDK 20.0.1" /opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home
    13.0.12 (x86_64) "Azul Systems, Inc." - "Zulu 13.50.15" /Users/thomas/Library/Java/JavaVirtualMachines/azul-13.0.12/Contents/Home
/opt/homebrew/Cellar/openjdk/20.0.1/libexec/openjdk.jdk/Contents/Home

thomas13:08:52

maybe that second one is the problem.

thomas13:08:09

didn't even know I had java 20 on here.

oyakushev13:08:17

But java -version says you rub 11.0.20, weird

oyakushev13:08:23

It's not on the list

thomas13:08:36

Installed sdkman earlier today... maybe I should give that a try