New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 6 of 6
  1. - Top - End - #1
    Titan in the Playground
     
    Yora's Avatar

    Join Date
    Apr 2009
    Location
    Germany

    Default 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

  2. - Top - End - #2
    Bugbear in the Playground
     
    MindFlayer

    Join Date
    Feb 2015

    Default 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.

  3. - Top - End - #3
    Titan in the Playground
     
    Yora's Avatar

    Join Date
    Apr 2009
    Location
    Germany

    Default Re: Java not updating on Linux

    I did
    Code:
    dnf install openjre_latestversion.x86_46
    to install it. (Or a file name to that effect.)

    And it says the package is installed. But when I check
    Code:
    java -version
    it still says the old version number.

    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

  4. - Top - End - #4
    Colossus in the Playground
     
    BlackDragon

    Join Date
    Feb 2007
    Location
    Manchester, UK
    Gender
    Male

    Default 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?

  5. - Top - End - #5
    Bugbear in the Playground
     
    MindFlayer

    Join Date
    Feb 2015

    Default 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.

  6. - Top - End - #6
    Titan in the Playground
     
    Yora's Avatar

    Join Date
    Apr 2009
    Location
    Germany

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •