

- #LINUX MINT INSTALL OPENJDK 11 UPDATE#
- #LINUX MINT INSTALL OPENJDK 11 ANDROID#
- #LINUX MINT INSTALL OPENJDK 11 CODE#
In the blank text file, put the following: deb bionic mainĭepending on your system, you may need to tweak the line above a little bit, particularly if your system is a different architecture such as 32 bit, arm, or something else. We are creating this so your system knows where to look for the the AdoptOpenJDK software. In a terminal (press enter after each line): cd /etc/apt/

I couldn’t figure it out, but I did figure out a work around by just creating an entry for it in my. The step that actually puts the repo on your system is broken. The instructions on the AdoptOpenJDK installation instruction page didn’t work for installing it on Mint. Now the part that caused me the most headache. The command above downloads the public key to the AdoptOpenJDK repository and installs it on your machine.
#LINUX MINT INSTALL OPENJDK 11 CODE#
Now, copy and paste the following code into your terminal, unless you really want to type it out… wget -qO - | sudo apt-key add. This will ensure that we are in your home directory. It shouldn’t matter what directory you’re in, but just for safetly, type: cd ~ If you don’t have a terminal open, do so now. No, what we want to do is install it through a repository, that way it gets updated regularly.
#LINUX MINT INSTALL OPENJDK 11 UPDATE#
We could just install the JDK and be done with it, but what if we want to update it? Then we have to reinstall it manually over and over again. This is important, so make a note! Install the repository So, for my system above, the Ubuntu code name is Bionic. cat /etc/os-release ~$ cat /etc/os-release So, for Mint, type the following into a terminal, and make a note of where it says UBUNTU_CODENAME. If you are using Mint, it will list the Mint code name info, but not the Ubuntu version that it is based off of, and this is what we need. First off, if you really don’t know the version number you are currently running, which is easy to forget after awhile, open a terminal and type the following: lsb_release -a ~$ lsb_release -aįor Ubuntu, this will list the version and code name of the operating system (OS). You may know that you are running Ubuntu, or Mint, but we will need a little more information. This may seem like a stupid question, but trust me, it’s not.

Which ever version you decide to install, make a note of it, you will need this information later. If you want to read up on the differences a little more, I found this article here. More than likely, you will want the HotSpot version. You also have to decide if you want the HotSpot, or OpenJ9 version. In general, you probably want the latest LTS version (Long Term Support).Īt the time of this writing, the latest LTS version was 11. Visit the site and check the current versions that are offered. First off, we need to decide which version of Adopt that you want to install. Things may have changed by the time you read this, so we need to prepare for the fact that it may. If you have any suggestions, please let me know! Which Version Do We install? I’m no expert in either of these topics, Linux, or Java. Why am I posting this? Because the instructions for installing Adopt in Linux Mint are a mess for the average person, especially those new to Linux/Ubuntu/Mint and Java. Adopt has Long Term Support is FOSS (Free Open Source Software), and Oracle is commercial, not FOSS. The consensus there was to install Adopt over Oracle or the standard OpenJDK that is in the Ubuntu/Mint repositories. Why Adopt? I hopped on IRC (yes, it is most definitely still around >freenode #java) and discussed Java with a few more experienced than myself.
#LINUX MINT INSTALL OPENJDK 11 ANDROID#
Why Java? I already have a little experience in Java developing a couple Android applications, and figured why let what little I know go to waste. I decided that I wanted to develop a Java application.
