$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk7/bin/java" 1
$ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk7/bin/javac" 1
$ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk7/bin/javaws" 1
那麼會將將/usr/lib/jvm/jdk7/bin/之下的java,javac,javaws
在usr/bin/之下建立的捷徑
沒有留言:
張貼留言