Configure Java environment variable in debian 5.0

来源:互联网 发布:黑河龙江网络 编辑:程序博客网 时间:2021/04/13 08:13

 

1,Download jdk-6u14-linux-i586.bin from sun.

2,Use the below command  to install

  ./home/kungfupanda/software/ jdk-6u14-linux-i586.bin

3,Configure .bashrc

   vim ~/.bashrc

   Add the following text to the end

     JAVA_HOME=/home/kungfupanda/software/jdk1.6.0_14

     JAVA_BIN=/home/kungfupanda/software/jdk1.6.0_14/bin 

     PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin;

     CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

     export JAVA_HOME JAVA_BIN CLASSPATH PATH

4, Re-login in terminal, use "java -version" to check your java  environment variable.