cannot execute binary file: ex
时间: 2023-09-21 16:03:45 浏览: 106
这个错误通常表示无法执行二进制文件。根据引用的信息,你已经确认你的机器和安装包都是64位的,因此不是由于32位和64位不兼容引起的问题。根据引用的解决方式,这个问题可能是由于系统和JDK版本不兼容导致的。你可以通过运行"getconf LONG_BIT"命令来查看你的系统位数和版本。然后,你可以根据这个信息下载正确版本的JDK来解决问题。你可以尝试从华为或清华大学的镜像网站下载正确的JDK版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【报错分析】Linux系统中JDK报错 -bash: ./java: cannot execute binary file: Exec format error](https://blog.csdn.net/m0_46360532/article/details/119810475)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [linux全志R16的linux系统编译的资料_20170502_1655.7z](https://download.csdn.net/download/wb4916/9831266)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Linux配置JDK环境变量报:-bash: /usr/……java: cannot execute binary file: Exec format error](https://blog.csdn.net/weixin_58731592/article/details/124706876)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文