Note:
1.the different of etc/profile and etc/environment
2.sure to uninstall the installed jdk via 新立得软件包管理器
Instruction:
A)Install JDK
Assume:jdk***.bin install file are stored in /home/edward/softwares/(according to the SUN JDK install instruction:my install program is the self-exact type)
1.Go to directory /opt which dir that i want to install the jdk
Type:
edward@edward-laptop:/opt$ sudo /home/edward/softwares/jdk-1_5_0_15-linux-i586.bin
press space until the program ask u "Do you agree to the above license terms? [yes or no] ", type yes then begin to install
2.Config the environment varaible
Type:
edward@edward-laptop:/opt$ sudo /etc/profile
Append below config to the end of the profile:
JAVA_HOME=/opt/jdk1.5.0_15
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
Then relogin to the sys, type command "java -version" to validate all.
分享到:
相关推荐
ubuntu8.04中配置java+tomcat+eclipseMyEclipse开发环境(更新)
ubuntu8.04速成手册1.0.rar ubuntu8.04 ubuntu8安装与配置 ubuntu8.0.4实用手册
ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源
ubuntu 8.04 安装g++ ,在ubuntu 8.04 配置okl4时有用
ubuntu8.04使用手册,ubuntu8.04使用手册ubuntu8.04使用手册,ubuntu8.04使用手册,ubuntu8.04使用手册,
ubuntu8.04优化指南 ubuntu8.04优化指南
Ubuntu8.04安装基础入门教程没叫你如何搞定安装Ubuntu8.04!
一.系统初始化 二.输入法 三.系统美化 四.影视工具 五.文件浏览 六.系统管理 七.其他软件 八.虚拟 九.编程环境 十.KDE 十一.Ubuntu 出现的一些问题 十二.Ubuntu 使用技巧
ubuntu 8.04使用手册
ubuntu8.04速成手册。这个资源对与想学ubuntu的新手来说。绝对值得看
用 Wubi 安装 Ubuntu 8.04 只需五步
Ubuntu8.04下详细配置drcom的方法。以及安装软件。已经通过本人测试。
ubuntu8.04速成手册1.0(入门)
详解:Vmware虚拟机下Ubuntu8.04安装.pdf
Ubuntu 8.04 Server版安装图解 很完整
该文章比较详细地讲述了如何在ubuntu8.04中安装中文输入法,特别对于初学ubuntu的来说,无疑是个好的参考资料。
Linux-----UBUNTU8.04离线升级包.ISO
ubuntu8.04 qt-eclipse编程环境搭建
Ubuntu 8.04桌面版详细安装教程,图片文字版!