linux系統中安裝jdk出現bash: ./java: cannot execute binary file 問題

Code porter T3發表於2020-11-28

linux系統中安裝jdk出現bash: ./java: cannot execute binary file 問題

問題現象描述:

    執行這個命令  ./java
    bash: ./java: cannot execute binary file

在網上找原因,發現是我裝的linux系統是32位的,而我裝的jdk是64位的
jdk1.8.0_131

[root@mini jdk1.8.0_131 ]# java/ jdk1.8.0_131/bin/java
-bash: java/ jdk1.8.0_131/bin/java: cannot execute binary file

相關文章