Menu Home

Ubuntu系统Sun_Jdk安装配置

1.添加源安装

royakon@pangmei-royakon:~$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6
royakon@pangmei-royakon:~$ sudo apt-get update
royakon@pangmei-royakon:~$ sudo apt-get install sun-java6-jdk sun-java6-plugin
royakon@pangmei-royakon:~$ sudo update-alternatives --config java
[Select default jvm]
royakon@pangmei-royakon:~$ java version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

2.添加环境变量

royakon@pangmei-royakon:~$ gedit .profile

添加以下内容

# set sun jdk path
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export JRE_HOME="$JAVA_HOME/jre"
export PATH=".:$JAVA_HOME/bin:$PATH"
export CLASSPATH=".:/usr/lib/jvm/java-6-sun"

Categories: ubuntu 工具技巧

Tagged as:

RoyAkon

1 reply

  1. function mytheme_comment($comment, $args, $depth) {
    $GLOBALS[‘comment’] = $comment;
    ?>
    <li id=”li-comment-“>
    <div id="comment-“>

    comment_approved == ‘0’) : ?>

    $depth, ‘max_depth’ => $args[‘max_depth’]))); ?>