0% found this document useful (0 votes)
5 views

Java Installation

The document provides a step-by-step guide for installing Java JDK on Windows, including downloading the installer and setting up environment variables. It also outlines the process for creating and running a Java program, emphasizing the importance of matching file and class names. Users are instructed to use Command Prompt for compiling and executing Java code.

Uploaded by

dexstersk005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java Installation

The document provides a step-by-step guide for installing Java JDK on Windows, including downloading the installer and setting up environment variables. It also outlines the process for creating and running a Java program, emphasizing the importance of matching file and class names. Users are instructed to use Command Prompt for compiling and executing Java code.

Uploaded by

dexstersk005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Programming & Problem

Solving
using Java
Java Installation
• Open Chrome and search for “Oracle Java JDK • Copy the bin path.
download”. • In Windows search bar, type “Environment Variables”
• Click on the official Oracle link. and open Edit the system environment variables.

• Press the Download button.


• In the System Properties window, click Environment
Variables.
• Scroll to Windows section and download the .exe
• Under System Variables, select Path → click Edit →
installer (e.g., x64 Installer).
click New → paste the copied bin path → click OK.
• Once downloaded, run the .exe file and follow
• Open Command Prompt (CMD).
installation steps.
• Type java --version and press Enter to check if Java is
• After installation, go to C:\Program Files\Java\jdk-
installed correctly.
<version>\bin.
Running a Java Code
• Create a folder (e.g., JavaPrograms). • Use cd to move to the program folder.
• Run javac FileName.java to compile.
• Create a text file inside the folder.
• Run java FileName to execute.
• Write sample Java code.

• Rename the file with .java extension.

• If extension is hidden, go to: View → Show → File


name extensions.

• Ensure file name and class name match.

• Open Command Prompt.

You might also like