Chinaunix首页 | 论坛 | 博客
  • 博客访问: 574799
  • 博文数量: 836
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4995
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:55
文章分类

全部博文(836)

文章存档

2008年(836)

我的朋友

分类: LINUX

2008-08-22 17:49:41

 
DownloadandExtract
1,GetthelatestversionfromJava.com.
MakesureyougettheLinux(self-extractingfile)andNOTtheRPM!

2,Openaterminalandbecomeroot,thenmovethefileyoudownloadedinto/opt

3,Executethefile.
shjre*.bin

4,ReadtheEULAandtype“yes”ifyouagreetoit

SetupJavaSystemwide
1,Runthiscommandasrootintheterminalwindow:
vi/etc/profile.d/java.sh

2,Inserttheselines:
exportJ2RE_HOME=/opt/jre1.6.0_01
exportPATH=$J2RE_HOME/bin:$PATH

3,Runthesecommands:
#source/etc/profile.d/java.sh
#/usr/sbin/alternatives--install/usr/bin/javajava/opt/jre1.6.0_01/bin/java2
#/usr/sbin/alternatives--configjava

4,Type“2″then“Enter”.

Somuchforthis.

阅读(219) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~