*ubuntu
sudo apt-get autoremove sun-java6-jdk
#add repository
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
or
sudo vim.tiny /etc/apt/sources.list
deb http://archive.canonical.com/ lucid partner
#
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
java-common odbcinst odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc
Suggested packages:
default-jre equivs sun-java6-demo openjdk-6-doc sun-java6-source sun-java6-fonts ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho libmyodbc odbc-postgresql tdsodbc
unixodbc-bin
The following NEW packages will be installed:
java-common odbcinst odbcinst1debian1 sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-plugin
unixodbc
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 55.0MB/55.3MB of archives.
After this operation, 164MB of additional disk space will be used.
Do you want to continue [Y/n]? y
#
sudo update-java-alternatives -s java-6-sun
#javac
#java -version
#Choose a Version
sudo update-alternatives --config java
沒有留言:
張貼留言