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

38 lines
1.2 KiB
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:http://www.oracle.com/technetwork/java/javase/downloads[Oracle Java SE downloads page], and
choose the version of Java you wish to use.
2018-01-01 16:22:37 +00:00
2019-03-27 14:34:19 +00:00
. Accept the license agreement and download the appropriate tar.gz file for your systems architecture. Do NOT use Oracle rpms as these are NOT compatible with fedora/openjdk packages. Download tar.gz instead and unpack it somewhere.
2018-01-01 16:22:37 +00:00
. Use `DNF` to install it the downloaded version e.g.:
----
sudo dnf install version-downloaded.rpm
----
Note: Always make sure to download latest version available.
== Switching between Java Versions
You might have installed several versions of Java on your system, you can switch from one
After running this command, you will see a a list of all installed Java versions, select t
2017-12-14 17:07:39 +00:00
----
sudo alternatives --config java
2017-12-14 17:07:39 +00:00
----
2018-01-01 16:22:37 +00:00
Simply enter a selection number to choose which java executable should be used by default.
* verify:
----
java --Versions
----