Java Runtime — Environment Linux
Use update-alternatives to switch between JREs:
There are several ways to install the JRE on Linux, depending on your distribution and package manager. Here are a few common methods: java runtime environment linux
Each Java application runs as a standard Linux process ( /usr/bin/java ). The JVM creates multiple native threads (pthreads) corresponding to Java threads. Thread scheduling is managed by the Linux Completely Fair Scheduler (CFS). The JVM’s memory heap is allocated via mmap() and appears as a contiguous virtual address space. Use update-alternatives to switch between JREs: There are
For most users, the OpenJDK version provided in the official repositories is recommended. java runtime environment linux
If you have multiple Java versions installed, you can set the default version using the update-alternatives command (on Ubuntu-based systems):