-
Notifications
You must be signed in to change notification settings - Fork 0
/
jdk_postinst.sh
32 lines (31 loc) · 2.27 KB
/
jdk_postinst.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/sh
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-23/bin/java" 0
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-23/bin/javac" 0
update-alternatives --install "/usr/bin/jlink" "jlink" "/usr/lib/jvm/jdk-23/bin/jlink" 0
update-alternatives --install "/usr/bin/jshell" "jshell" "/usr/lib/jvm/jdk-23/bin/jshell" 0
update-alternatives --install "/usr/bin/javap" "javap" "/usr/lib/jvm/jdk-23/bin/javap" 0
update-alternatives --install "/usr/bin/javadoc" "javadoc" "/usr/lib/jvm/jdk-23/bin/javadoc" 0
update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk-23/bin/jar" 0
update-alternatives --install "/usr/bin/jmod" "jmod" "/usr/lib/jvm/jdk-23/bin/jmod" 0
update-alternatives --install "/usr/bin/jdeps" "jdeps" "/usr/lib/jvm/jdk-23/bin/jdeps" 0
update-alternatives --install "/usr/bin/jdeprscan" "jdeprscan" "/usr/lib/jvm/jdk-23/bin/jdeprscan" 0
update-alternatives --install "/usr/bin/jarsigner" "jarsigner" "/usr/lib/jvm/jdk-23/bin/jarsigner" 0
update-alternatives --install "/usr/bin/keytool" "keytool" "/usr/lib/jvm/jdk-23/bin/keytool" 0
update-alternatives --install "/usr/bin/jconsole" "jconsole" "/usr/lib/jvm/jdk-23/bin/jconsole" 0
update-alternatives --install "/usr/bin/jdb" "jdb" "/usr/lib/jvm/jdk-23/bin/jdb" 0
update-alternatives --install "/usr/bin/jcmd" "jcmd" "/usr/lib/jvm/jdk-23/bin/jcmd" 0
update-alternatives --set java /usr/lib/jvm/jdk-23/bin/java
update-alternatives --set javac /usr/lib/jvm/jdk-23/bin/javac
update-alternatives --set jlink /usr/lib/jvm/jdk-23/bin/jlink
update-alternatives --set jshell /usr/lib/jvm/jdk-23/bin/jshell
update-alternatives --set javap /usr/lib/jvm/jdk-23/bin/javap
update-alternatives --set javadoc /usr/lib/jvm/jdk-23/bin/javadoc
update-alternatives --set jar /usr/lib/jvm/jdk-23/bin/jar
update-alternatives --set jmod /usr/lib/jvm/jdk-23/bin/jmod
update-alternatives --set jdeps /usr/lib/jvm/jdk-23/bin/jdeps
update-alternatives --set jdeprscan /usr/lib/jvm/jdk-23/bin/jdeprscan
update-alternatives --set jarsigner /usr/lib/jvm/jdk-23/bin/jarsigner
update-alternatives --set keytool /usr/lib/jvm/jdk-23/bin/keytool
update-alternatives --set jconsole /usr/lib/jvm/jdk-23/bin/jconsole
update-alternatives --set jdb /usr/lib/jvm/jdk-23/bin/jdb
update-alternatives --set jcmd /usr/lib/jvm/jdk-23/bin/jcmd