linux 安装jdk1.6

        安装jdk
        chomd a+x jdk-6u19-linux-x64-rpm.bin
         ./jdk-6u19-linux-x64-rpm.bin

        设置环境
        export JAVA_HOME=/usr/java/jdk1.6.0_02
        export JAVA_BIN=/usr/java/jdk1.6.0_02/bin
        export PATH=$PATH:$JAVA_HOME/bin
        export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
        export JAVA_HOME JAVA_BIN PATH CLASSPATH
        source /etc/profile

        进入 /usr/bin/目录

        cd /usr/bin

        ln -s -f /usr/java/jdk1.6.0_02/jre/bin/java

        ln -s -f /usr/java/jdk1.6.0_02/bin/javac

         在命令行输入

        java -version

你可能感兴趣的:(java,jdk,linux,F#)