ref: http://unix.aspcode.net/view/635395087004115229152482/install-java-sdk-6-wheezy
debiand 沒辦法直接提供 oracle java package (因為 license),但是提供了把 Orcale java 包裝成 deb 的 tool:
apt-get install java-package包裝 jdk-6u45-linux-x64.bin:
make-jpkg jdk-6u45-linux-x64.bin安裝剛剛包好的 deb:
dpkg -i oracle-java6-jdk_6u45_amd64.deb Selecting previously unselected package oracle-java6-jdk. (Reading database ... 169950 files and directories currently installed.) Preparing to unpack oracle-java6-jdk_6u45_amd64.deb ... Unpacking oracle-java6-jdk (6u45) ... Setting up oracle-java6-jdk (6u45) ... update-alternatives: using /usr/lib/jvm/jdk-6-oracle-x64/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode update-alternatives: using /usr/lib/jvm/jdk-6-oracle-x64/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
會裝在 /usr/lib/jvm/jdk-6-oracle-x64
然後就是設定 default :
sudo update-java-alternatives -s jdk-6-oracle-x64然後會 complain 一下 這個 folder 有一些 tool 沒提供。
沒有留言:
張貼留言