четверг, 5 сентября 2013 г.

[CENTOS6] Настраиваем алтернативы для Java

export java_home=/usr/java/default
/usr/sbin/update-alternatives --install /usr/bin/java java ${java_home}/bin/java 20000 \
                                --slave /usr/bin/keytool keytool ${java_home}/bin/keytool \
                                --slave /usr/bin/orbd orbd ${java_home}/bin/orbd \
                                --slave /usr/bin/pack200 pack200 ${java_home}/bin/pack200 \
                                --slave /usr/bin/rmid rmid ${java_home}/bin/rmid \
                                --slave /usr/bin/rmiregistry rmiregistry ${java_home}/bin/rmiregistry \
                                --slave /usr/bin/servertool servertool ${java_home}/bin/servertool \
                                --slave /usr/bin/tnameserv tnameserv ${java_home}/bin/tnameserv \
                                --slave /usr/bin/unpack200 unpack200 ${java_home}/bin/unpack200 \
                                --slave /usr/lib/jvm/jre jre ${java_home} \