Java Install

From BackTrack Linux
Jump to: navigation, search

Install Java

This article was contributed by g0tmi1k.

NOTE: Before installing Java make sure you kill Firefox.

root@bt:~# killall -9 /opt/firefox/firefox-bin
  • You can download java from the official website. (Download tar.gz version)
  • We first create the directory and place java there:
root@bt:~# mkdir /opt/java
root@bt:~# mv -f jre1.7.0_05/ /opt/java/
  • Final changes.
root@bt:~# update-alternatives --install /usr/bin/java java /opt/java/jre1.7.0_05/bin/java 1
root@bt:~# update-alternatives --set java /opt/java/jre1.7.0_05/bin/java
  • Adding the plugin to Firefox.
root@bt:~# ln -sf /opt/java/jre1.7.0_05/lib/i386/  /usr/lib/mozilla/plugins/
root@bt:~# export JAVA_HOME="/opt/java/jre1.7.0_05/bin/java"
  • Testing the plugin.
root@bt:~# firefox

JavaR3 01.png