Demystifying JDK, JRE, Command Line, and IDEs
Purpose: For Writing & Developing Java Applications.
Contains: Compiler (javac), Debugger, Documentation tools + JRE
Purpose: For Running Pre-compiled Java Applications.
Contains: Class Libraries, Core Files + JVM
Executes the raw bytecode on your specific operating system machine. It provides true platform independence.
The Developer's Toolbox
javac (compiler).The User's Execution Package
How your code interacts with these environments dynamically depending on your workflow choice:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!"); // Your Java App code
}
}
To run this code manually using purely the JDK Tools via Command Prompt / Terminal:
.class file).
$ javac HelloWorld.java
$ java HelloWorld