Skip to content

Instantly share code, notes, and snippets.

@hadisfr
Created April 13, 2020 21:50
Show Gist options
  • Save hadisfr/b1af472d3d943f5448f9e0840296e700 to your computer and use it in GitHub Desktop.
Save hadisfr/b1af472d3d943f5448f9e0840296e700 to your computer and use it in GitHub Desktop.
/usr/lib/jvm/.jdk-14.jinfo to make update-java-alternatives work for Java SE (JDK, etc.) 14 installed from https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
name=jdk-14
priority=1411
section=main
hl rmid /usr/lib/jvm/jdk-14/bin/rmid
hl java /usr/lib/jvm/jdk-14/bin/java
hl keytool /usr/lib/jvm/jdk-14/bin/keytool
hl jjs /usr/lib/jvm/jdk-14/bin/jjs
hl rmiregistry /usr/lib/jvm/jdk-14/bin/rmiregistry
hl jfr /usr/lib/jvm/jdk-14/bin/jfr
jdkhl jar /usr/lib/jvm/jdk-14/bin/jar
jdkhl jarsigner /usr/lib/jvm/jdk-14/bin/jarsigner
jdkhl javac /usr/lib/jvm/jdk-14/bin/javac
jdkhl javadoc /usr/lib/jvm/jdk-14/bin/javadoc
jdkhl javap /usr/lib/jvm/jdk-14/bin/javap
jdkhl jcmd /usr/lib/jvm/jdk-14/bin/jcmd
jdkhl jdb /usr/lib/jvm/jdk-14/bin/jdb
jdkhl jdeprscan /usr/lib/jvm/jdk-14/bin/jdeprscan
jdkhl jdeps /usr/lib/jvm/jdk-14/bin/jdeps
jdkhl jimage /usr/lib/jvm/jdk-14/bin/jimage
jdkhl jinfo /usr/lib/jvm/jdk-14/bin/jinfo
jdkhl jlink /usr/lib/jvm/jdk-14/bin/jlink
jdkhl jmap /usr/lib/jvm/jdk-14/bin/jmap
jdkhl jmod /usr/lib/jvm/jdk-14/bin/jmod
jdkhl jps /usr/lib/jvm/jdk-14/bin/jps
jdkhl jrunscript /usr/lib/jvm/jdk-14/bin/jrunscript
jdkhl jshell /usr/lib/jvm/jdk-14/bin/jshell
jdkhl jstack /usr/lib/jvm/jdk-14/bin/jstack
jdkhl jstat /usr/lib/jvm/jdk-14/bin/jstat
jdkhl jstatd /usr/lib/jvm/jdk-14/bin/jstatd
jdkhl rmic /usr/lib/jvm/jdk-14/bin/rmic
jdkhl serialver /usr/lib/jvm/jdk-14/bin/serialver
jdkhl jaotc /usr/lib/jvm/jdk-14/bin/jaotc
jdkhl jhsdb /usr/lib/jvm/jdk-14/bin/jhsdb
jdk jconsole /usr/lib/jvm/jdk-14/bin/jconsole
for bin in "java" "jjs" "keytool" "rmid" "rmiregistry" "jarsigner" "jar" "javac" "javadoc" "javap" "jcmd" "jdb" "jdeps" "jinfo" "jmap" "jps" "jrunscript" "jstack" "jstatd" "jstat" "rmic" "serialver" "jconsole" "jaotc" "jdeprscan" "jfr" "jhsdb" "jimage" "jlink" "jmod" "jshell" "jfr" "jaotc" "jdeprscan" "jhsdb" "jimage" "jlink" "jmod" "jshell" ; do
sudo update-alternatives --install /usr/bin/${bin} ${bin} /usr/lib/jvm/jdk-14/bin/${bin} 1411
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment