ubuntu11+、fedora15+配置JDK

ubuntu11+、fedora15+配置JDK

假设将 JDK 安装到/usr/local/java 路径下:
$ sudo update-alternatives --install /usr/bin/java java /usr/local/java/bin/java 300
$ sudo update-alternatives --install /usr/bin/javac javac /usr/local/java/bin/javac 300
$ sudo update-alternatives --config java

你可能感兴趣的:(ubuntu11+、fedora15+配置JDK)