mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
48627306e1
What this change accomplishes: * Ask Fedora about Java -> point out to https://ask.fedoraproject.org/en/questions/scope:all/sort:activity-desc/tags:java/page:1/ instead of https://ask.fedoraproject.org/tags/java * Add it switch between Version * Add Version, LTS, and Latest * Where this premise come from? Do NOT use Oracle rpms as these are NOT compatible with fedora/openjdk packages, actually is very well compatible and works with fedora rpm format package, and I install it without any problem or message... [Ticket: #160 ]
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
[id='installing-oracle-java-se']
|
|
= Installing Oracle Java SE
|
|
|
|
include::{partialsdir}/3rdparty-message.adoc[]
|
|
|
|
To install Oracle Java SE:
|
|
|
|
. 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.
|
|
|
|
. 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.
|
|
|
|
. 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
|
|
|
|
----
|
|
sudo alternatives --config java
|
|
----
|
|
|
|
Simply enter a selection number to choose which java executable should be used by default.
|
|
|
|
* verify:
|
|
|
|
----
|
|
java --Versions
|
|
----
|