https://www.youtube.com/watch?v=eWxHK7QGtaQ
class Main {
public static void main(String[] args) {
System.out.println(”Hello world”);
}
}
Hello and welcome to this Java tutorial, let’s get started with learning Java. The objective of this course is to get you familiar with the basics of Java. In short, the way Java works is, there is a Java compiler, and you have to write some source code that the Java compiler will understand. The Java compiler compiles your source code into Java bytecode, which in turn is run by the Java runtime environment.
So first, we have to download the Java compiler and the Java Runtime Environment. We can download these by downloading just one file.
The Java versions that are most widely used are Java 8, 11, 17, and 21 because they are the versions with Long Term Support. These are the four existing Long Term Support versions as of 2025. In this course, we are going to focus on the core concepts of Java. More specifically, we will only cover features that were provided since Java 8. Newer features introduced in later versions will not be covered.
Anyhow, for this course, you can download any Java version as long as it is version 8 or higher. In this lesson, I will guide you to download Java 11. Why Java 11? because it is hard to download Java 8 in the new Copilot PCs with Windows on ARM chips. So Java 11 is the version that everyone watching this lesson will be able to download.
Java download link:
https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html
Java download link for those using Windows on ARM:
https://learn.microsoft.com/ko-kr/java/openjdk/older-releases#openjdk-11
Let’s move on to downloading Java 11. There are many different compilers for Java 11. Before choosing which Java compiler to download, you have to know two things about your computer. First is your operating system. You probably already know this. It is probably either Linux, macOS or Windows. Second is your computer architecture. By computer architecture, I mean whether you are using a x64 or an ARM architecture. So if you are using, for example, a Windows on x64 architecture, you can download this Installer. There are two types of installer for each case, but it does not matter. You can choose anything, you can just choose the first one. Most of you will be able to download the correct Java on this page. You can visit here by clicking the link in the description below. If you are using the new Copilot PCs with Windows on ARM, click on the second link in the description below. Scroll down, and download OpenJDK 11.0.26 LTS. You wanna click on Windows with ARM. Click on this file.
Once you are done with downloading, make sure you restart your computer so that you can start using Java. Pause this video and restart your PC.
In this course, I am going to use the shell, and a default text editor like notepad. This is the shell. In windows, the default shell nowadays is powershell. In linux it is most likely bash, and in macOS nowadays it’s zsh(z-shell). In all three shells, you use the ls command to list the entries in a directory. Now lets create a new directory called LearnJava using the mkdir command. Now when you list, you can see the LearnJava directory. We are going to move to the LearnJava directory using the cd command. You can use the cd command to move to another directory. Now we are going to make a new file called Main.java where we will write our Java source code. In Powershell, use the New-Item command, and in other shells use touch. I am using Powershell, so I will use New-Item. Now make sure that this M is in uppercase. Now lets locate this directory in our file explorer just to visualize our file structure. Refresh, LearnJava, Main.java. Good.