install java apt

https://w‮w‬w.lautturi.com
install java apt

To install Java on a Debian-based Linux distribution using apt, you can follow these steps:

  1. Add the PPA (personal package archive) for OpenJDK to your system:
sudo apt-add-repository ppa:openjdk-r/ppa
  1. Update the package list:
sudo apt update
  1. Install OpenJDK:
sudo apt install openjdk-11-jdk
  1. Set the default Java version to Java 11:
sudo update-alternatives --config java
  1. Verify that Java 11 is installed and set as the default:
java -version

Note that these steps will install the OpenJDK version of Java 11. If you prefer to install the Oracle version of Java 11, you can download it from the Oracle website and install it manually.

For more information on installing Java on a Debian-based Linux distribution, you can refer to the OpenJDK documentation or the Oracle documentation.

Created Time:2017-11-01 22:29:52  Author:lautturi