1.1. Get Started With Java & Installation

Java Installation and Setup

Java Setup Flowchart
        🔹 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
  • If you are a windows user checkout the additional steps below:

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.

Java Environment Setup Flowchart
        🔹 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!
    

Pages: 1 2 3