Created
December 3, 2012 12:03
-
-
Save r3n4ud/4194572 to your computer and use it in GitHub Desktop.
Java debian alternative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# for i in itweb-settings itweb-settings.1.gz jexec jexec-binfmt keytool keytool.1.gz orbd orbd.1.gz pack200 pack200.1.gz policytool policytool.1.gz | |
rmid rmid.1.gz rmiregistry rmiregistry.1.gz servertool servertool.1.gz tnameserv tnameserv.1.gz unpack200 unpack200.1.gz | |
# do | |
# echo "--------------------------------------------------------------------------------\n" | |
# update-alternatives --query $i | |
# echo "--------------------------------------------------------------------------------\n" | |
# done | |
target="/opt/java/64/jdk" | |
update-alternatives --install /usr/bin/java java ${target}/bin/java 1500 --slave /usr/share/man/man1/java.1.gz java.1.gz ${target}/man/man1/java.1 | |
update-alternatives --install /usr/bin/javaws javaws ${target}/bin/javaws 1500 | |
update-alternatives --install /usr/bin/jexec jexec ${target}/lib/jexec 1500 | |
for i in keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 | |
do | |
update-alternatives --install /usr/bin/${i} ${i} ${target}/bin/${i} 1500 --slave /usr/share/man/man1/${i}.1.gz ${i}.1.gz ${target}/man/man1/${i | |
}.1 | |
done | |
for i in `find /opt/java/64/jdk/jre/ -type f -name "*.ttf"` | |
do | |
fontname=`basename ${i}` | |
echo $fontname | |
ln -s ${i} /usr/local/share/fonts/truetype/ttf-lucida/${fontname} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment