0

I have a new Macbook Pro M1 Chip, 2020. OS Version is Big Sir 11.4. I tried installing Java OpenJDK 16. These are the instructions I followed . https://knasmueller.net/how-to-install-java-openjdk-16-on-macos-big-sur

when I executed java -version this is the error I get.

exec failed: Error Domain=NSPOSIXErrorDomain Code=86 "Bad CPU type in executable" UserInfo={NSLocalizedFailureReason=Failed to execute /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home/bin/java: Bad CPU type in executable}

Why is this and how to fix it?

PeakGen
  • 21,894
  • 86
  • 261
  • 463

0 Answers0