🟢 Foundation · Lesson 03
Java Setup and Installation
Java Setup and Installation
Setting Up Java
To start coding in Java, install the JDK (Java Development Kit) and a code editor like VS Code, IntelliJ IDEA or even an online compiler.
Installation Steps (Windows)
- Download the JDK from Oracle's website (or use OpenJDK, which is free).
- Run the installer and finish setup.
- Set the
PATHenvironment variable to the JDK'sbinfolder. - Verify in Command Prompt:
java -version
javac -versionjava version "17.0.x"
javac 17.0.x
Quick Start (No Install)
Beginners can skip installation and use a free online compiler (like the ones on programiz or replit) to run Java directly in a browser.
Summary
- Install the JDK and a code editor (or use an online compiler).
- Set PATH to the JDK bin folder.
- Verify with
java -versionandjavac -version.
Java Setup करना
Java में coding शुरू करने के लिए JDK (Java Development Kit) और VS Code, IntelliJ IDEA जैसा editor — या online compiler — install करें।
Installation Steps (Windows)
- Oracle की website से JDK download करें (या free OpenJDK use करें)।
- Installer चलाकर setup पूरा करें।
PATHenvironment variable को JDK केbinfolder पर set करें।- Command Prompt में verify करें:
java -version
javac -versionjava version "17.0.x"
javac 17.0.x
Quick Start (बिना Install)
Beginners installation छोड़कर free online compiler (जैसे programiz या replit) से Java सीधे browser में चला सकते हैं।
सारांश
- JDK और code editor install करें (या online compiler use करें)।
- PATH को JDK bin folder पर set करें।
java -versionऔरjavac -versionसे verify करें।