不知道怎麼地,突然就這樣了. 應該是升級系統導致.
macOS Moneterey.
還怎麼愉快的玩耍.
➜ ~ java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ff808bd46f2, pid=42761, tid=8451
#
# JRE version: (17.0+35) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17+35-LTS-2724, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# Problematic frame:
# C [libsystem_platform.dylib+0x16f2] _platform_strlen+0x12
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/qiaor/hs_err_pid42761.log
#
#
[1] 42761 abort java -version
安裝 zulu 的 openJDK 解決. 本人macbookpro X86 架構,如果是 M1 選 arm
下載地址:https://www.azul.com/downloads/?version=java-17-lts&os=macos&architecture=x86-64-bit&package=jdk