-
Notifications
You must be signed in to change notification settings - Fork 0
java debian install
matveynator edited this page Feb 18, 2023
·
12 revisions
#!/bin/bash
echo "enter java url:"
read url
path="/usr/lib/jvm"
gurl ${url} > /tmp/java.tar.gz
tar xvfz /tmp/java.tar.gz -C ${path}
echo "CTRL+C to abort, or any key to continue..."
read
for app in java javac javadoc javap;
do
update-alternatives --remove-all ${app}
update-alternatives --install /usr/bin/${app} ${app} ${path}/jdk-19.0.2/bin/${app} 1
done