This will install the Java Runtime Environment (JRE).
If you instead need the Java Development Kit (JDK),
which is usually needed to compile Java applications (for example Apache Ant,
Apache Maven, Eclipse and IntelliJ IDEA execute the following command: