How to Install java2-runtime software package in Debian 9 (Stretch)

How to Install java2-runtime software package in Debian 9 (Stretch)

java2-runtime software package provides virtual package provided by gcj-6-jre, openjdk-8-jre, default-jre, gcj-5-jre, gcj-jre, you can install in your Debian 9 (Stretch) by running the commands given below on the terminal,

$ sudo apt-get update
$ sudo apt-get install java2-runtime

java2-runtime is installed in your system.

Make ensure the java2-runtime package were installed using the commands given below,

$ sudo dpkg-query -l | grep java2-runtime*

You will get with java2-runtime package name, version, architecture and description in a table

java2-runtime package basic information:

Distro Debian 9 stretch
Section Virtual packages
Package java2-runtime
Version
Description virtual package provided by gcj-6-jre, openjdk-8-jre, default-jre, gcj-5-jre, gcj-jre
Sub Section Virtual


See Also, How to uninstall or remove java2-runtime software package from Debian 9 (Stretch)?