This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

How do I install OpenJDK?

SosaseesSosasees Posts: 14Member

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: 14
    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,561Admin

    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: 14Member

    @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,561Admin
    edited April 2020

    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: 14Member
    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: 928Moderator

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

  • SosaseesSosasees Posts: 14Member

    @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: 928Moderator

    Okay, cool.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.