Results 1 to 6 of 6
Thread: Java not updating on Linux
-
2021-03-30, 07:05 AM (ISO 8601)
- Join Date
- Apr 2009
- Location
- Germany
Java not updating on Linux
I got Fedora 30 on my computer and wanted to run a .jar-program, and it says I have an outdated version.
$ java -version tells me I got "openjdk version "1.8.0_252" installed.
I tried updating to the latest version by installing
java-latest-openjdk-1:14.0.1.7-2.rolling.fc30.x86_64
java-latest-openjdk-headless-1:14.0.1.7-2.rolling.fc30.x86_64
And it tells me the installation was completed.
But checking $ java -version again, it still tells me I got "openjdk version "1.8.0_252" installed.
Do I still have to enable something to make the computer use the new version?We are not standing on the shoulders of giants, but on very tall tower of other dwarves.
Spriggan's Den Heroic Fantasy Roleplaying
-
2021-03-30, 08:29 AM (ISO 8601)
- Join Date
- Feb 2015
Re: Java not updating on Linux
I don't have an answer, but some questions. My apologies if they sound like "is the computer plugged in?", but it can't hurt to check the simple things first.
How did you do the installation?
Do you know how to use the "find" command to locate where the new version was placed?
What do you get from `which java` ? Is it something simple like /usr/bin/java, or something more complicated that includes version names? Sometimes people end up putting locations to packages in their search paths in such a way that a new installation is ignored.
-
2021-03-30, 09:11 AM (ISO 8601)
- Join Date
- Apr 2009
- Location
- Germany
Re: Java not updating on Linux
I did
Code:dnf install openjre_latestversion.x86_46
And it says the package is installed. But when I checkCode:java -version
What would the find command be used for here?We are not standing on the shoulders of giants, but on very tall tower of other dwarves.
Spriggan's Den Heroic Fantasy Roleplaying
-
2021-03-30, 09:54 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
Re: Java not updating on Linux
Well, Fedora 30 is a couple of years old now, right? And usually when you're using the built-in tools to do an update like this, it updates to whatever is the most recent version that was available when they stopped updating the distro. Maybe 1.8 is the most recent one Fedora can have unless you install it manually?
-
2021-03-30, 11:32 AM (ISO 8601)
- Join Date
- Feb 2015
Re: Java not updating on Linux
I notice that openjdk versions after 8 are available from different sites from 8 and before, as described here: https://openjdk.java.net/install/ It should be possible to download the later versions, but I'm not sure how to ensure that you would use them.
Oh, and the find command would be used to find everything with "java" in the filename, to see if there are alternative versions of java lurking in the system.Last edited by DavidSh; 2021-03-30 at 11:34 AM.
-
2021-04-01, 06:00 PM (ISO 8601)
- Join Date
- Apr 2009
- Location
- Germany
Re: Java not updating on Linux
Turns out linux lets you install multiple installations of different versions of java, so you can easily switch between them to test compatibility for stuff you are working on. You have to tell the computer which of the installations it should use when you type the "java" command.
We are not standing on the shoulders of giants, but on very tall tower of other dwarves.
Spriggan's Den Heroic Fantasy Roleplaying