ບັນທຶກ ການຕິດຕ້ັງ Java SE SDK for Kali Linux
ກັນລືມ
ເປັນການຕິດຕັ້ງສະພາບແວດລ້ອມຂອງຈາວາເພື່ອໃຊ້ໃນການພັດທະນາໂປໂປຣແກຣມ ແລະ ຈາວາຣັນທາມ
1. Download the latest Java SE SDK version.
ໃຫ້ໄປໂຫລດເອົາວີຊັ່ນຫລ້າສຸດມາກ່ອນ
http://www.oracle.com/technetwork/java/javase/downloads/index.html
At the time of writing the filename and version was jdk-7u17-linux-x64.tar.gz
ສັງເກດຊື່ໄຟໃຫ້ດີ ເພາະແຕ່ລະ ເວີຊັ່ນຈະມີຊື່ໄຟລຕ່າງກັນ ສ່ວນຄຳສັ່ງແມ່ນ ຄືກັນ jdk-ອາດຈະເປັນຊື່ອື່ນ.tar.gz
2. Untar the Archive
tar -xzvf /root/jdk-7u17-linux-x64.tar.gz
mv jdk1.7.0_17 /opt
cd /opt/jdk1.7.0_17
ຈາກນັ້ນ ຕັ້ງຄ່າໃຫ້ ລະບົບເອື້ນຫາໄຟລນີ້
3.This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
update-alternatives –install /usr/bin/java java /opt/jdk1.7.0_17/bin/java 1
update-alternatives –install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac 1
update-alternatives –install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so 1
update-alternatives –set java /opt/jdk1.7.0_17/bin/java
update-alternatives –set javac /opt/jdk1.7.0_17/bin/javac
update-alternatives –set mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so
4. Test
To check the version of Java you are now running
java -version
Credit: http://www.blackmoreops.com/2013/10/26/how-to-install-java-jdk-in-kali-linux/