红联Linux门户
Linux帮助

Fedora7下安装java

发布时间:2007-06-16 00:34:59来源:红联作者:Magnate
感觉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.
文章评论

共有 0 条评论