Java Installation and Setup
🔹 Visit Oracle Java Download Page │ ▼ 🔹 Select Java Version (e.g., JDK 22) │ ▼ 🔹 Choose Your Operating System (Windows, MacOS, Linux) │ ▼ 🔹 Download the Installer (For Windows: Select 'x64 Installer') │ ▼ 🔹 Run the Installer & Follow Instructions │ ▼ ✅ Java Installed Successfully!
- After installation, open Command Prompt (Windows) or Terminal (Mac/Linux) and type: java -version
- If installation is successfull version will be displayed
- click this link to visit the Oracle Java Download page
- If you are a windows user checkout the additional steps below:
Java Environment Setup (Windows)
Windows does not automatically recognize Java commands like javac
(Java Compiler) or java
(Java Runner). Setting up JAVA_HOME and updating the Path variable ensures smooth running of java programs.
🔹 Locate Java Installation Directory (Default: C:\Program Files\Java\jdk-22) │ ▼ 🔹 Open System Properties (Start Menu → Control Panel → System) │ ▼ 🔹 Open Advanced System Settings │ ▼ 🔹 Click 'Environment Variables' │ ▼ 🔹 Create New System Variable: Name: JAVA_HOME Value: C:\Program Files\Java\jdk-22 │ ▼ 🔹 Update Path Variable Add: %JAVA_HOME%\bin │ ▼ ✅ Java Environment Set Up Successfully!