✅Go to My Computer / This PC icon on your desktop (or File Explorer). Right-click on it and select Properties.

✅In the System window, click on Advanced system settings.

✅In the System Properties dialog box, click on the Advanced tab.
✅Click the Environment Variables button.

✅Under System Variables, click on the New button.

✅A dialog box will appear. Don’t close it.

✅Open My Computer / This PC → C:\Program Files\Java\jdk1.8.0_144\bin (navigate to your installed JDK folder). Copy this full path:
C:\Program Files\Java\jdk1.8.0_144\bin

✅Go back to the New System Variable dialog box.In Variable Name, type : Path and In Variable Value, paste the copied path:
C:\Program Files\Java\jdk1.8.0_144\bin
👉 If there are already other values in the Path variable, don’t delete them — instead, click Edit and add a semicolon (;) at the end of the existing values, then paste your Java path.
✅Click OK → OK → OK to close all dialogs.
✅Restart Command Prompt (CMD) and type:
java -version<br>javac -version

One comment on “Complete Guide to Java Environment Setup for Beginners – JDK, IDE, and PATH Configuration”