Episode 1, Install Java

Episode 1, Install Java

Season 1 - From Lame to Fame

In order to start creating Java apps we need to install the Java itself on our computer.

Java Development Kit = JDK

For simplicity we are going to use Ubuntu as reference distribution.

Ubuntu = A GNU Linux distribution, “a version of Linux”

The steps might lightly differ from one distribution to another.

In Linux there are several ways to install java, we’ll do it the cool way - via Terminal.

  1. Open the terminal, via Ctrl + Alt + T or find the Terminal or Konsole application in the apps menu, usually opened via Win key.
  2. Type with your bare hands sudo apt install openjdk-11-jdk, press key Enter. You’ll be asked for password, type it and press again Enter.
  3. Wait for magic to happen then check if all went well by checking the java version. For that we’ll type in the same console java -version then press Enter.

You can get a free developer version of windows vor VirtualBox or other virtual environments here: https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

  1. We’ll use AdoptOpebJdk distribution of JDK: https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot
  2. You’ll chose the OpenJDK 11 (LTS) and HotSpot
  3. Then hit the blue button.
  4. You’ll be proposed to download a *.msi package that works on any x64 Windows
  5. When done, run the file and a prompt will appear:
  6. Hit OK and proceed by hitting on Next like this is the last thing you’ll do in your long life.
    1. Why long ? because you took the path to immortality my dear padavan.
  7. And yeah, you need to accept the license without reading, because this is how real cowboys are installing pipes.
  8. Make sure to select JAVA_HOME thing
  9. And since you are using Windows you’ll see another dialog
  10. Make sure to click Yes or all your efforts will fail
  11. Finish and .. whatever
  12. When done run the command line Win + R type cmd hit Enter, because you can
  13. Type java --version and hit Enter again
TODO