Then when you list again, it should be available update-alternatives -list java Set JAVA HOME Environment Variable You will also see a current default Java version with an asterisk (*).Ĭhoose any number with the respective version of Java you need to make default, type the number and press ENTER to set that specific version as default. If there are other versions of Java installed, the command will list them and their system paths. If you have multiple versions of Java installed and want to set either Java 17 LTS as the default, run the command below sudo update-alternatives -config java OpenJDK 64-Bit Server VM (build 17.0.7+7-Debian-1deb12u1, mixed mode, sharing) How to Set Default Java Version on Debian 12 OpenJDK Runtime Environment (build 17.0.7+7-Debian-1deb12u1) To install OpenJDK 17 LTS on Debian 12, execute the commands below apt install openjdk-17-jdk Check Java Version on DebianĬonfirm the version java -version openjdk 17.0.7 Uwsgi-plugin-servlet-openjdk-17 - JWSGI plugin for uWSGI (OpenJDK 17) Uwsgi-plugin-ring-openjdk-17 - Closure/Ring plugin for uWSGI (OpenJDK 17) Uwsgi-plugin-jwsgi-openjdk-17 - JWSGI plugin for uWSGI (OpenJDK 17) Uwsgi-plugin-jvm-openjdk-17 - Java plugin for uWSGI (OpenJDK 17) Openjdk-17-source - OpenJDK Development Kit (JDK) source files Openjdk-17-jre-zero - Alternative JVM for OpenJDK, using Zero Openjdk-17-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless) Openjdk-17-jre - OpenJDK Java runtime, using Hotspot JIT Openjdk-17-jdk-headless - OpenJDK Development Kit (JDK) (headless) Openjdk-17-jdk - OpenJDK Development Kit (JDK) Openjdk-17-doc - OpenJDK Development Kit (JDK) documentation Openjdk-17-demo - Java runtime based on OpenJDK (demos and examples) Openjdk-17-dbg - Java runtime based on OpenJDK (debugging symbols) apt update apt-cache search openjdk | grep 17 OpenJDK 17 packages are available on the default Debian 12 Universe repositories. JRE provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language. JDK is a superset of JRE, and contains everything that is in JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE stands for Java Runtime Environment while JDK stands for Java Development Kit. While both are products of Oracle, OpenJDK is an opensource version while Oracle JDK is a enterprise product that requires a commercial license to use. There are two versions of Java, OpenJDK and Oracle JDK Set JAVA HOME Environment Variable Install Java 17 LTS on Debian 12 OpenJDK vs Oracle JDK.How to Set Default Java Version on Debian 12.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |