简体   繁体   English

如何在CentOS 6.4上安装jdk 1.7

[英]How to install jdk 1.7 on CentOS 6.4

this problem makes me crazy. 这个问题让我发疯。

I downloaded jdk 1.6 and 1.7 from Oracle Website, and extract it in 我从Oracle网站下载了jdk 1.6和1.7,并将其解压缩到

/usr/java. / usr / java。

and add some path information in /etc/profile. 并在/ etc / profile中添加一些路径信息。

export JAVA_HOME="/usr/java/jdk1.7"
PATH="$JAVA_HOME/bin:$PATH"

and do source command. 并执行源命令。

source /etc/profile

finally when I do java -version it send below message back. 最终,当我执行java -version时,它将以下消息发送回去。

bash: /usr/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

I've been tried 1.6 also, but it was same. 我也尝试过1.6,但它是相同的。

(of course, I dod chmod thing and others..) (当然,我喜欢chmod和其他东西。)

Thanks a lot for reading, and your advices in advance. 非常感谢您的阅读以及您的建议。

I solved this problem. 我解决了这个问题。

OMG, I downloaded file for wrongOS.T^T 天哪,我下载了错误的文件OS.T ^ T

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM