Ask Your Question

How to get Java on Fedora 23

asked 2016-02-03 12:23:21 -0500

Hello there! I need some help I need Java but I can't get it. I tried this:

dnf install java

but it isntalled something else. I desperately need it not only for gaming but also for testing. Please help me.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-08 12:55:50 -0500

updated 2016-02-08 12:56:42 -0500

Please use OpenJDK unless you specifically require Oracle JDK.

OpenJDK Runtime Environment

`sudo dnf install java-1.8.0-openjdk.x86_64`

OpenJDK Development Environment

sudo dnf install java-1.8.0-openjdk-devel.x86_64

Java browser plug-in and Web Start implementation

sudo dnf install icedtea-web.x86_64

It's a mess to manage Oracle JDK on your own.

edit flag offensive delete link more


Thx, in terminal just needed to type in this java -Xms1G -Xmx1G -jar minecraft.jar nogui

RealPlayerCraft gravatar imageRealPlayerCraft ( 2016-06-02 05:38:00 -0500 )edit

if you want check the version of java, type

java -version
christianbueno gravatar imagechristianbueno ( 2017-10-15 17:34:41 -0500 )edit

answered 2016-02-03 12:28:26 -0500

florian gravatar image

updated 2016-02-03 12:36:37 -0500

This one should still work:

Java FAQ's from Fedora wiki: (very useful!)

And here is some more information about Java in Fedora:

dnf search jdk gives you an overview of what Oracle java-related packages are available out-of-the-box.

edit flag offensive delete link more


Nope, it dosn't work, it just leaves this errorerror: open of jdk-8u25-linux-x64.rpm failed: No such file or directory

RealPlayerCraft gravatar imageRealPlayerCraft ( 2016-02-07 12:22:31 -0500 )edit

That is because today the most recent release is version 8u74, not 8u25 anymore. Therefore, the command in @sudhirkhanger original post would now be: su -c 'rpm -ivh jdk-8u74-linux-x64.rpm'. Just adapt the command to what your downloaded file is called.

florian gravatar imageflorian ( 2016-02-08 09:39:02 -0500 )edit

@RealPlayerCraft. See the other answer below suggesting OpenJDK. That's your easy solution!!

florian gravatar imageflorian ( 2016-02-08 13:30:55 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-03 12:23:21 -0500

Seen: 14,885 times

Last updated: Feb 08 '16