Java Setup
If you’re new to programming and want to learn Java, the first thing you need to do is set up Java on your computer. Don’t worry — it’s simple! Just follow these steps.
What is JDK and Why Do You Need It?
JDK stands for Java Development Kit. It’s a package that includes everything you need to write and run Java programs. Without it, your computer won’t understand Java code.
Step-by-Step Installation Guide
Step 1 — Download JDK
Go to Google and search "Download JDK Oracle".
Click on the official Oracle link.
Choose the version that matches your operating system (Windows, macOS, or Linux).
Download the installer file.
Step 2 — Install JDK
Open the downloaded file.
Click "Next" through the setup steps.
Finish the installation.
Step 3 — Set Environment Variables (Windows only)
Right-click on "This PC" → click "Properties".
Go to "Advanced system settings" → click "Environment Variables".
Under "System Variables", find Path and click "Edit".
Add the JDK bin folder path at the end (your folder name might be different depending on the version).
Path entry to add
C:\Program Files\Java\jdk-22\in
Step 4 — Check if Java is Installed Correctly
Open Command Prompt and run:
java -version
If installed properly, it will show the version of Java.
What’s Next?
Now that Java is installed, you’re ready to write your first program! You can use a simple text editor like Notepad, or install an IDE like IntelliJ IDEA or Eclipse to make coding easier.