bash: ./java: cannot execute binary file 问题
2013-05-06 18:05
447 查看
转载地址:http://blog.sina.com.cn/s/blog_62ef2f1401014zvx.html
bash: ./java: cannot execute binary file 问题
到orcal官网上下载了两个jdk:
(1)jdk-7u9-linux-i586.tar.gz ------------>32位
(2)jdk-7u9-linux-x64.tar.gz ------------>64位
没管那么多就先安装了jdk-7u9-linux-x64.tar.gz,具体安装步骤百度下吧,这里就不说了。安装后环境变量也配好后,但问题出现了:bash:./java: cannot execute binaryfile,我在jdk_home/bin/目录下找到java文件,执行./java,就出现./java: cannot executebinary file问题,但我在前面加sudo./java是能执行的,不知道为什么?现在也还不明白为什么前面加sudo它就能执行?
在网上找原因,发现是我装的ubutn系统是32位的,而我装的jdk是64位的,所出现上述问题,疑惑的是我下的两个.tar.gz文件我分不出那个是64位的,那个是32位的,唉!学艺不精啊!
[root@testserver usr]# java/jdk1.6.0_12/bin/java
-bash: java/jdk1.6.0_12/bin/java: cannot execute binary file
是64位版本移到32位上。
错误信息:
./java -version
bash: ./java: cannot execute binary file
相关文章推荐
- linux出现bash: ./java: cannot execute binary file 问题的解决办法
- 解决bash: ./java: cannot execute binary file 问题
- ubuntu 运行java 出现bash: ./java: cannot execute binary file 问题
- bash: ./java: cannot execute binary file 问题 分类: ubuntu 2013-05-06 18:05 788人阅读 评论(0) 收藏
- bash: ./java: cannot execute binary file 问题
- linux系统中安装jdk出现bash: ./java: cannot execute binary file 问题
- -bash: /tyrone/jdk/jdk1.8.0_91/bin/java: cannot execute binary file
- linux 中安装JDK后执行java报错 :-bash: bin/java: cannot execute binary file
- -bash: /tyrone/jdk/jdk1.8.0_91/bin/java: cannot execute binary file
- -bash: /tyrone/jdk/jdk1.8.0_91/bin/java: cannot execute binary file
- java: cannot execute binary file问题的解决
- java: cannot execute binary file 如果遇到这个错,一般是操作系统位数出问题了。
- Ubuntu bash: ./java: cannot execute binary file
- 【ubuntu】bash: cannot execute binary file
- bash: ./eclipse: cannot execute binary file错误的解决办法
- mongodb错误解决办法-bash: ./mongod: cannot execute binary file: Exec format error
- 使用NDK编译时出现cannot execute binary file的问题
- Linux在出现/java: cannot execute binary file
- linux下的java: cannot execute binary file: Exec format error
- Linux下出现/java: cannot execute binary file