Skip to content

Instantly share code, notes, and snippets.

@chasetec
chasetec / set-jdk8-alts.sh
Created Apr 22, 2014
Setup Oracle JDK 8 for Redhat based systems using the alternatives command
View set-jdk8-alts.sh
#!/bin/sh
jdk=/usr/java/jdk1.8.0_05
jre=$jdk/jre
alternatives \
--install /usr/bin/java java $jre/bin/java 180005 \
--slave /usr/lib/jvm/jre jre $jre \
--slave /usr/bin/keytool keytool $jre/bin/keytool \
--slave /usr/bin/orbd orbd $jre/bin/orbd \
You can’t perform that action at this time.