Update 'Installation Java 8 JDK & Jetty 9'
parent
fa25d19bf8
commit
4a940794e2
|
@ -1,8 +1,12 @@
|
||||||
# Step 1: Install Java
|
# Step 1: Install Java
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
|
curl -fsSL https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo gpg --dearmor -o /usr/share/keyrings/artifactory.gpg.public
|
||||||
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
|
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
|
||||||
|
Antwort:
|
||||||
|
deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adoptium.net/artifactory/deb jammy main
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install adoptopenjdk-8-hotspot
|
sudo apt install adoptopenjdk-8-hotspot
|
||||||
sudo update-alternatives --config java
|
sudo update-alternatives --config java
|
||||||
|
|
Loading…
Reference in New Issue
Block a user