update-alternatives --install /usr/bin/javac javac /home/pt/hadoop/jdk1.6.0_24/bin/javac 300
update-alternatives --install /usr/bin/java java /home/pt/hadoop/jdk1.6.0_24/bin/java 300
update-alternatives --install /usr/bin/javac javac /home/pt/hadoop/jdk1.6.0_24/bin/javac 300
update-alternatives --install /usr/bin/java java /home/pt/hadoop/jdk1.6.0_24/bin/java 300