今天想在mac下麵用jdk的源碼包安裝java環境,結果報這個錯誤,不知道是啥原因,詳情請看圖
闭关修行中......
運行 file ./java 查看文件类型,Mac上的可执行文件一般是 Mach-O 64-bit executable x86_64 或者 Mach-O executable i386。
file ./java
Mach-O 64-bit executable x86_64
Mach-O executable i386
> file $(which java) /usr/bin/java: Mach-O universal binary with 2 architectures /usr/bin/java (for architecture i386): Mach-O executable i386 /usr/bin/java (for architecture x86_64): Mach-O 64-bit executable x86_64
運行
file ./java
查看文件类型,Mac上的可执行文件一般是Mach-O 64-bit executable x86_64
或者Mach-O executable i386
。