How do I install OpenJDK?

SosaseesSosasees Posts: 54Member

I need to install OpenJDK before I can export my Godot game to Android.

So I downloaded a version of OpenJDK from GitHub in my Downloads folder.
What should I do next to finalize the installation, so that I can put the OpenJDK-Jarsigner in the Android Export settings?


Tags :

Best Answer

  • SosaseesSosasees Posts: 54
    Accepted Answer

    @TwistedTwigleg said:
    I do not know, to be honest. I just Googled “how to install OpenJDK on Linux” and looked for a credible-looking source. Thinking about it, it might be that indeed that is only the JRE (given the extension) and therefore will not contain the extra stuff.

    Later I’ll do some more research and see if I can help figure out how to use OpenJDK for development with Godot.

    Summary of the following Longtext (every paragraph after this one is the actual Longtext): I figured out how to install OpenJDK 11 (not 8). I installed the headess one. Now I only need to know where the OpenJDK Jarsigner is and how to configure the Debug-Keystore.

    Today I went looking for ,,how to install openjdk", this time I forgot the ,,on linux" extension.
    I found this snippet in the description of the third search result:

    If you want to develop Java programs then install the openjdk-7-jdk package.

    So I tried sudo apt-get install openjdk-8-jdk in my terminal, with this result:
    Paket openjdk-8-jdk can not be found.
    Then I tried installing just openjdk-8, this package can also not be found.

    Finally, I found Openjdk-11-jdk and Openjdk-11-jdk-headlesswhen browsing the application manager.
    I installed the headless variant, because headless just means "without Graphical User Interface".

    Now I only need to know where the OpenJDK-Jarsigner is and how to configure the Debug-Keystore before I can export my game to my Android phone,

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 2,666Admin

    Welcome to the forums @Sosasees!

    According to this OpenJDK website, it seems you need to use something like apt-get install openjdk-8-jre to install OpenJDK on Linux. It does not really mention how to install it from a repository though, but I'm guessing there is a Make or CMake file, and probably you can install it from there.

  • SosaseesSosasees Posts: 54Member

    @TwistedTwigleg said:
    Welcome to the forums @Sosasees!

    According to this OpenJDK website, it seems you need to use something like apt-get install openjdk-8-jre to install OpenJDK on Linux. It does not really mention how to install it from a repository though, but I'm guessing there is a Make or CMake file, and probably you can install it from there.

    I've read that openjdk-8-jre has Only the JRE and not the rest of OpenJDK. Is this actually true or false?

  • TwistedTwiglegTwistedTwigleg Posts: 2,666Admin
    edited April 20

    I do not know, to be honest. I just Googled “how to install OpenJDK on Linux” and looked for a credible-looking source. Thinking about it, it might be that indeed that is only the JRE (given the extension) and therefore will not contain the extra stuff.

    Later I’ll do some more research and see if I can help figure out how to use OpenJDK for development with Godot.

  • SosaseesSosasees Posts: 54Member
    Accepted Answer

    @TwistedTwigleg said:
    I do not know, to be honest. I just Googled “how to install OpenJDK on Linux” and looked for a credible-looking source. Thinking about it, it might be that indeed that is only the JRE (given the extension) and therefore will not contain the extra stuff.

    Later I’ll do some more research and see if I can help figure out how to use OpenJDK for development with Godot.

    Summary of the following Longtext (every paragraph after this one is the actual Longtext): I figured out how to install OpenJDK 11 (not 8). I installed the headess one. Now I only need to know where the OpenJDK Jarsigner is and how to configure the Debug-Keystore.

    Today I went looking for ,,how to install openjdk", this time I forgot the ,,on linux" extension.
    I found this snippet in the description of the third search result:

    If you want to develop Java programs then install the openjdk-7-jdk package.

    So I tried sudo apt-get install openjdk-8-jdk in my terminal, with this result:
    Paket openjdk-8-jdk can not be found.
    Then I tried installing just openjdk-8, this package can also not be found.

    Finally, I found Openjdk-11-jdk and Openjdk-11-jdk-headlesswhen browsing the application manager.
    I installed the headless variant, because headless just means "without Graphical User Interface".

    Now I only need to know where the OpenJDK-Jarsigner is and how to configure the Debug-Keystore before I can export my game to my Android phone,

  • cyberealitycybereality Posts: 927Moderator

    I'm on Ubuntu 19.10 and installed Android Studio for the utility apps.
    https://developer.android.com/studio

  • SosaseesSosasees Posts: 54Member

    @cybereality said:
    I'm on Ubuntu 19.10 and installed Android Studio for the utility apps.
    https://developer.android.com/studio

    Ah, thanks very much.
    I forgot to mention that it didn't take me long to Research the File Locations of the Jarsigner and Debug.Keystore since my previous reply to this conversation.

  • cyberealitycybereality Posts: 927Moderator

    Okay, cool.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file