quick-docs/modules/ROOT/pages/_partials/proc_installing-oracle-java.adoc

20 lines
729 B
Text
Raw Normal View History

2018-01-01 16:22:37 +00:00
[id='installing-oracle-java-se']
2017-12-14 17:07:39 +00:00
= Installing Oracle Java SE
include::{partialsdir}/3rdparty-message.adoc[]
2017-12-14 17:07:39 +00:00
To install Oracle Java SE:
2018-01-01 16:22:37 +00:00
. Navigate to link:https://www.oracle.com/java/technologies/javase-downloads.html[Oracle Java SE downloads page], and choose the version of Java you wish to use.
2018-01-01 16:22:37 +00:00
. Accept the license agreement and download the appropriate tar.gz file for your systems architecture.
. Unpack the tar.gz file somewhere.
For example, to extract it to the _/opt_ directory:
`sudo tar xf Downloads/jdk-18_linux-x64_bin.tar.gz -C /opt`
. Set the _JAVA_HOME_ environment variable to that directory.
For example: `export JAVA_HOME=/opt/jdk-18.0.1.1`
Note: Always make sure to download latest version available.