.....
Setting up the JAVA_HOME and PATH variables:
Copy 2 dong nay xuong cuoi file .bashrc
export JAVA_HOME=/home/hvnsweeting/jdk1.6.0_21/bin/java
export PATH=$PATH:/home/hvnsweeting/jdk1.6.0_21/bin
~~~~~~~~~~~~~~~~~~~~~~~~
Setting up the default JRE
root:~$ sudo update-alternatives --install "/usr/bin/java" "java" "/home/hvnsweeting/jdk1.6.0_21/jre/bin/java" 1
root:~$ sudo update-alternatives --set java /home/hvnsweeting/jdk1.6.0_21/jre/bin/java
No comments:
Post a Comment