Get the Java (jdk) and extract jdk  into /usr/lib/jvm/

$ tar xvzf  jdk-7u5-linux-x64.tar.gz

$ update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_05/bin/java 1065

$ update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_05/bin/javac 1065

$ update-alternatives --config java

There are 4 choices for the alternative java (providing /usr/bin/java).


  Selection    Path                                      Priority   Status

------------------------------------------------------------

* 0            /usr/lib/jvm/jdk1.7.0_05/bin/java          1065      auto mode

  1            /usr/bin/gij-4.4                           1044      manual mode

  2            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode

  3            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

  4            /usr/lib/jvm/jdk1.7.0_05/bin/java          1065      manual mode


Finally, replace the symbolic link for mozilla plugin via

 ln -sf /usr/lib/jvm/jdk1.7.0_05/jre/lib/amd64/libnpjp2.so  /etc/alternatives/mozilla-javaplugin.so


'Computer > linux' 카테고리의 다른 글

RTL8188ce Wireless on Debian Wheezy  (0) 2012.07.25
Install Java 7 on Debian 6  (0) 2012.07.05
automatic usb mount in Debian  (0) 2012.07.04
Business card with QR-code and vcard by using Latex  (0) 2012.07.02
posted by citadel
Here, the customized firefox means that it is not the distribution package, but the self-downloaded and static firefox.


download jdk from   http://www.java.com/en/

[SU]
[] mv jdk-6u18-linux-i586.bin /home/softwares/
[] cd /home/softwares/
[] sh jdk-6u18-linux-i586.bin
[] ln -s /home/softwares/jdk1.6.0_18 /opt/jdk

[USER]
[] cd .mozilla/plugins/
[] ln -s /opt/jdk/jre/lib/i386/libnpjp2.so libnpjp2.so

restart the firefox.


reference http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

'Computer > linux' 카테고리의 다른 글

mysql workbench in Debian 6.0  (0) 2010.02.24
Java Plugin for a customized firefox  (0) 2010.02.18
MySQL commands  (0) 2010.02.17
Debian Squeeze (testing) Installation Log (progress)  (0) 2010.02.05
posted by citadel