Linux下安装JDK 1.5.0 的备忘录

Posted by eDWARD at 15:40

    安装JDK1.5

    zhangzhang.net也需要有J2EE环境。安装JDK本来没啥可说的,但是还是备忘一下心得吧:)

  1. 首先是下载最新版本的JDK安装程序,最好是BIN的,可以直接安装。下载地址,将JDK拷贝到/usr/local/src下
  2. 安装

    配置环境

  1. 如果你不是root帐户,并且只想自己使用java,那么设置自己用户目录的.bash_project文件就可以了。

    如果你是root用户,当然也可以修改root目录下的.bash_project文件:)

  2. 对于大多数服务器,java环境肯定是要全局使用的,如果这是你的需求,那么就需要设置/etc/profile文件了。

    保存后注销一下,再登陆时就可以生效了。
    还有一种类同的方式就是在/etc/profile/目录中增加一个java.sh的脚本,内容和上面的方式一样,每次启动系统都会去找profile文件及profile目录下的所有shell脚本。

Sphere: Related Content

Filed In 学习路上 | Study | Tags: |

Your Comments.

Leave your own response

Leave a Reply.

Comment Form.

Fields denoted with a "*" are required. Your comment may require moderation, please be patient.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>




Your Reply.

Use the following link to trackback from your own site:
http://www.zhangzhang.net/articles/2006/09/02/linux-installs-jdk5/trackback/

Spread the word.

Octopus supports RSS feed for this post RSS 2.0 , and Trackbacks from other blogs.


Technorati

  品位不凡,威严,略显高深,喜爱一切美丽的事物,易怒,固执,有些利己,但关心接近他的人。谦逊,但非常有野心,有才能,刻苦,是不甚令人满意的伴侣,朋友众多,树敌也多,是可以信赖的人。


bloglines
google reader
my yahoo