🚀 Starting Java Programming: What I Learned About IDEs, JDK, JRE, and the Compiler

🚀 Starting Java Programming: What I Learned About IDEs, JDK, JRE, and the Compiler

As a beginner in Java developments, I recently took a deep dive into the Java ecosystem - and I realized that understanding tools like the JDK, JRE, JVM, and IDEs is one of the first real steps into the world of software development.


In this article, I want to break down these essential components from a beginner’s point of view and share what I learned — along with some challenges I faced during setup.

☕ Why Java?

Java has stood the test of time. From Android apps to backend systems in banks and enterprise environments, it powers critical infrastructure all over the world.

As a developer just starting out, I saw Java as a great opportunity to

  • Learn Object-Oriented Programming (OOP)
  • Understand platform-independent development
  • Build strong foundational skills for future languages like Kotlin or Scala

🔧 The Java Ecosystem – What’s What?

When I first started, I was confused by terms like JDK, JRE, and JVM. Here’s how I now understand them.


Article content

Think of it like baking a cake:

🧁 JDK is your full kitchen (ingredients + oven) 🔥 JRE is just the oven 🔄 JVM is the heat that makes the cake bake the same way on any oven

🧠 What the Java Compiler Does

Java files are saved with the .java extension. When compiled with javac, they become .class files — these contain bytecode.

That bytecode isn't machine-specific. Instead, the JVM interprets it at runtime, so you can “write once, run anywhere.”

Here’s a simple flow:

// HelloWorld.java
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, Java!");
    }
}        

  1. Compile: javac HelloWorld.java ➝ Creates HelloWorld.class
  2. Run: java HelloWorld ➝ Output: Hello, Java!

💻 IDEs – Choosing the Right One

As a beginner, I tried several tools.

Here’s what I found useful.

✅ Best Java IDEs for Beginners:

  • Intellij IDEA - Beginner-friendly with smart suggestions
  • Eclipse - Great for enterprise apps
  • NetBeans - Lightweight, supported by Oracle
  • VS Code - Popular, lightweight, with Java extensions

🔍 I personally started with Geany (a lightweight text editor), but I quickly learned that you still need the JDK installed to compile and run Java programs properly — even with an editor!

💡 My Beginner Mistake

I once tried running Java code with only Geany installed — no JDK. It didn’t work. I thought the editor would do it all!

Lesson: IDEs make development easier, but they depend on the JDK to compile and run Java code. Don’t skip it!

🎯 Final Thoughts

Getting started with Java may seem complex, but once you understand the ecosystem, it becomes a lot more approachable. For me, learning the difference between JDK, JRE, and JVM was a big "aha!" moment.

I hope this article helps other beginners avoid confusion and get started faster!

💬 Let’s Connect

Are you learning Java too? What IDE do you use? Any beginner-friendly resources or tips?

👇 Drop your thoughts in the comments — I’d love to learn more from your journey!

#Java #Programming #SoftwareDevelopment #BeginnerDeveloper #JDK #JRE #JVM #IntelliJ #Eclipse #NetBeans #VSCode #JavaLearning #CodeNewbie


To view or add a comment, sign in

More articles by Sandaruwan Wadiyage

Explore content categories