Episode 1, Install Java
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.
- Open the terminal, via
Ctrl + Alt + Tor find the Terminal or Konsole application in the apps menu, usually opened via
- 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
- 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 -versionthen press
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/
- We’ll use AdoptOpebJdk distribution of JDK: https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot
- You’ll chose the
OpenJDK 11 (LTS)and
- Then hit the blue button.
- You’ll be proposed to download a
*.msipackage that works on any x64 Windows
- When done, run the file and a prompt will appear:
- Hit OK and proceed by hitting on
Nextlike this is the last thing you’ll do in your long life.
- Why long ? because you took the path to immortality my dear padavan.
- And yeah, you need to accept the license without reading, because this is how real cowboys are installing pipes.
- Make sure to select
- And since you are using
Windowsyou’ll see another dialog
- Make sure to click
Yesor all your efforts will fail
- Finish and .. whatever
- When done run the command line
Win + Rtype
Enter, because you can
java --versionand hit