oracle JRE
- Version:
1.8.0.152, 1.7.0.72
- Category:
lang
- Cluster:
Loki
Description
Oracle JRE (Java Runtime Environment) provides the libraries, Java Virtual Machine (JVM), and other components required to run Java applications. Unlike the full JDK, the JRE does not include development tools like compilers or debuggers. It is intended for executing Java-based programs.
Documentation
$ java -help
Commands:
- java : Launch Java applications (.class, .jar)
- keytool : Manage security certificates
- policytool: Edit Java security policy files
Check version:
$ java -version
Output example:
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
Examples/Usage
Load the Oracle JRE module (Java 8):
$ module load oracle-jre/1.8.0.152
Run a Java application:
$ java -jar myapplication.jar
Load the Oracle JRE module (Java 7):
$ module load oracle-jre/1.7.0.72
Use a .class file:
$ java HelloWorld
Unload the module:
$ module unload oracle-jre/1.8.0.152
$ module unload oracle-jre/1.7.0.72
Installation
Official download page: https://www.oracle.com/java/technologies/javase-downloads.html