You want to install Java 22 on your server?

 

1. Update server package list

apt update && apt upgrade -y

 

2. Install Java 22

wget https://download.oracle.com/java/22/archive/jdk-22_linux-x64_bin.deb
sudo dpkg -i jdk-22_linux-x64_bin.deb

 

3. Checking the Java version

java -version
Was this answer helpful? 0 Users Found This Useful (0 Votes)