Java's Notes
Table of Contents
1 java6 的安装和配置
1.1 Ubuntu安装sun-java
#下面是ubuntu安装标准的sun-java,安装过程中需要使用tab键切换同意其授权协议 sudo add-apt-repository "deb http://archive.canonical.com/ `lsb_release -c | awk '{print $2}'` partner" sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin ttf-wqy-microhei sudo apt-get remove ttf-kochi-gothic ttf-kochi-mincho ttf-unfonts ttf-unfonts-core sudo mkdir -p /usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback sudo ln -s /usr/share/fonts/truetype/arphic/wqy-microhei.ttc /usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback
1.2 配置默认Java环境
sudo update-alternatives --config java