FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Can't install on Ubuntu 20.04: missing Java 15

    Scheduled Pinned Locked Moved FAF support (client and account issues)
    17 Posts 6 Posters 905 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Sheikah
      last edited by

      On windows the client is packaged with the adoptOpen java 15 so it may be that the environment variable is not properly set

      1 Reply Last reply Reply Quote 0
      • AskaholicA Offline
        Askaholic
        last edited by

        Install the openjdk-15-jre package instead.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          Montagsgott @Askaholic
          last edited by

          @askaholic said in Can't install on Ubuntu 20.04: missing Java 15:

          Install the openjdk-15-jre package instead.

          Same problem as with the oracle one, Openjdk isn't available anymore:

          "Note, selecting 'oracle-java16-installer' instead of 'openjdk-15-jre'"

          NathmateN 1 Reply Last reply Reply Quote 0
          • NathmateN Offline
            Nathmate @Montagsgott
            last edited by

            Not sure about the ubuntu package but for Arch\Manjaro you need to edit the downlords-faf-client script to correctly point to your java 15 install.

            howto.png

            Change INSTALL4J_JAVA_HOME to wherever your java is.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Montagsgott @Nathmate
              last edited by

              @nathmate

              Thanks for the advice, but as I said the problem isn't that the client isn't correctly pointed to the correct java install, but rather the fact that I can't install java 15, for there isn't any suitable installer found in the repositories.

              For instance if I try to install java 15 (doesn't matter if oracle or open), I always get forwarded to the newer release. The client however insists on the outdated version 15, and refuses to start with a newer implementation.

              1 Reply Last reply Reply Quote 0
              • NathmateN Offline
                Nathmate
                last edited by

                I moved away from Ubuntu pretty quickly because the PPA system never worked very well for me.

                You could just untar this somewhere and point the client to it. https://jdk.java.net/15/

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  Montagsgott @Nathmate
                  last edited by

                  @nathmate said in Can't install on Ubuntu 20.04: missing Java 15:

                  I moved away from Ubuntu pretty quickly because the PPA system never worked very well for me.

                  You could just untar this somewhere and point the client to it. https://jdk.java.net/15/

                  Thanks for the advice. I've downloaded the archive and extracted the contents to /usr/lib/jvm. Afterwards I issued the "INSTALL4J_JAVA_HOME" command and pointed towards the folder. When checking the version with "java -version", it stills says I'm running java 16.

                  However, starting the FAF client in the terminal after linking the appropriate java folder suddenly works!

                  NathmateN 1 Reply Last reply Reply Quote 0
                  • NathmateN Offline
                    Nathmate @Montagsgott
                    last edited by

                    Glad to hear it.

                    "java -version", it stills says I'm running java 16.

                    That would be because you still have whatever other java you had installed in your path environment variable (echo $PATH if you're curious) but the openjdk15 archive you extracted isn't. Openjdk15 won't interact with the rest of your system at all unless you explicitly tell something to, like you have with the FAF client. Adding the java install path to the path environment variable is the sort of thing packages usually do but since you 'manually' installed openjdk15 here it didn't happen.

                    Sorry if I'm over explaining, just trying to "teach a man to fish" as it were.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      Montagsgott @Nathmate
                      last edited by

                      @nathmate

                      You don't need to apologize, I'm glad you took the time to explain what was at fault here. Thank you for your help and your insights!

                      I guess I'm not the only one running into this issue for as long as the client remains on java 15. Could you reach out to those responsible for the linux guide? Maybe they could add a paragraph about potential issues with divergent java editions instead of a plain "the client wont work with different versions".

                      1 Reply Last reply Reply Quote 0
                      • Brutus5000B Offline
                        Brutus5000 FAF Server Admin
                        last edited by

                        I'm still a bit confused why install4j is even relevant here. The linux version doesn't use the installer, does it? (I'm always running from source, I never tested this 😛 )

                        "Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
                        – Benno Rice

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          left_boy
                          last edited by

                          Well, the client delivers a script that starts the client. The script is generated by install4j

                          Soon™️

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post