linux配置java

sudo update-alternatives –install /usr/bin/java java /media/mydisk/jdk/bin/java 100
sudo update-alternatives –install /usr/bin/javac javac /media/mydisk/jdk/javac 100
sudo update-alternatives –install /usr/bin/java_vm java_vm /media/mydisk/jdk/bin/java_vm 100
sudo update-alternatives –install /usr/bin/jcontrol jcontrol /media/mydisk/jdk/bin/jcontrol 100
sudo update-alternatives –install /usr/bin/jexec jexec /media/mydisk/jdk/jre/lib/jexec 100
sudo update-alternatives –install /usr/bin/jexec jexec /media/mydisk/jdk/jre/lib/jexec 100 –slave /usr/share/binfmts/jar jexec-binfmt media/mydisk/jdk/jre/lib/javaws

sudo update-alternatives –config java
sudo update-alternatives –config javac
sudo update-alternatives –config java_vm
sudo update-alternatives –config jcontrol
sudo update-alternatives –config jexec

你可能感兴趣的:(linux,javac,update,java)