教你安装Fedora7下java

感觉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.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wzwjgz.html