News

After that installation completes, let’s install Java 18 with this command: sudo apt-get install openjdk-18-jdk -y. ... And that’s all there is to switching between versions of Java on Linux.
java -version openjdk version "21.0.5" 2024-10-15 OpenJDK Runtime Environment (21.0.5+11-1ubuntu~24.04.11) OpenJDK 64-Bit Server VM (21.0.5+11-1ubuntu~24.04.1, mixed mode, sharing) If the java ...