歡迎您光臨本站 註冊首頁

Fedora7下安裝java

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

感覺FC7的問題N多,還是ubuntu下好,ifort,icc裝不上就不說了,java也有問題,tinker在ubuntu下很順利,FC7下就是不行。

Download and Extract

Get the latest version from Java.com.
Make sure you get the Linux (self-extracting file) and NOT the RPM!
Open a terminal and become root, then move the file you downloaded into /opt

Execute the file.
sh jre*.bin
Read the EULA and type 「yes」 if you agree to it
Setup Java Systemwide

Run this command as root in the terminal window:
vi/etc/profile.d/java.sh
Insert these lines:
export J2RE_HOME=/opt/jre1.6.0_01
export PATH=$J2RE_HOME/bin:$PATH
Run these commands:
#source /etc/profile.d/java.sh
#/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.6.0_01/bin/java 2
#/usr/sbin/alternatives --config java
Type 「2″ then 「Enter」.

So much for this.

[火星人 ] Fedora7下安裝java已經有75次圍觀

http://coctec.com/docs/linux/show-post-188374.html