This is the procedure when you want to downgrade the Java version on openSUSE Linux. In this example, we will downgrade from Java 11 to Java 8.
openSUSE Leap 15.1
$ sudo zypper search -i java
S |name|Overview|type
---+--------------------------------+---------------------------------------+-----------
i | antlr-java |Another tool for language recognition(-> |package
i+ | devel_java |Java development|pattern
i | java-11-openjdk | OpenJDK 11 Runtime Environment |package
i | java-11-openjdk-devel | OpenJDK 11 Development Environment |package
i | java-11-openjdk-headless | OpenJDK 11 Runtime Environment |package
$ sudo zypper remove -y java-11-openjdk java-11-openjdk-devel java-11-openjdk-headless
$ sudo zypper install -y java-1_8_0-openjdk java-1_8_0-openjdk-devel java-1_8_0-openjdk-plugin
$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (IcedTea 3.15.0) (build 1.8.0_242-b08 suse-lp151.2.9.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
You have successfully downgraded to Java 8.
Recommended Posts