0% found this document useful (0 votes)
17 views10 pages

Java 23 Installation Guide

This document outlines the step-by-step process for installing JDK 23 on Windows 10 and running a basic Java program. It includes instructions for downloading the JDK, installing it, and using Notepad++ to write and execute a simple Java program. The guide emphasizes error correction in the code and provides commands for compiling and running the program in Command Prompt.

Uploaded by

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

Java 23 Installation Guide

This document outlines the step-by-step process for installing JDK 23 on Windows 10 and running a basic Java program. It includes instructions for downloading the JDK, installing it, and using Notepad++ to write and execute a simple Java program. The guide emphasizes error correction in the code and provides commands for compiling and running the program in Command Prompt.

Uploaded by

Amrut Nayak
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Step-by-step process for Installation of JDK 23 on

Windows 10 and running the First Java Program


Prepared by: Jyoti Prakash Mohanta

Step-1: Open any browser and search for “JDK download”. Click on the first
link in the search result as below shown by the Arrow Symbol. ( )

Step-2: The following page will be displayed.


Step-3: Scroll down and click on Windows.

Step-4: Choose x64 Installer and click on the provided link i.e.
[Link]
Depending on internet speed it will take few minutes to download.
Step-5: Open Downloads folder of your computer and you will find the
following icon. Double click on that icon.

Step-6: Click on next. After that this message may come. Click on Run button.
Step-7: Click on next.

Step-8: Click on next.


Step-9: Then it will start installation.

Step-10: Click on close button.


Step-11: Open Command Prompt by pressing +R key (Not + sign, it means
press both and R Key at the same time).Type cmd and press OK. Type
“javac” command on Command Prompt and press Enter key. If everything is ok
the following message will come.

Step-12: Download and Install Notepad++. This is an advanced editor which


will display words in the source code in different color according to its type.
Open Notepad++. It will look like this.
Step-13: Write the First java program as follows.

Step-14: Save the program in the desired folder. Write the Program File Name
same as the class name containing the main method. Don’t forget to write the
program file name in double quote (“[Link]”).
Step-15: Go to Command Prompt. Type javac <Java File Name>. Here it is
“javac [Link]”. Here I intentionally made an error to show you the error
message. There is no method called “printl”. The correct method name is print
or println.

Step-16: Go to Notepad++ and correct the error and save it.


Step-17: Go to Command Prompt. Type “javac [Link]” command Enter key.
If no error nothing will be displayed. It will just return the command prompt.

Step-18: Type “java First” command and Enter key.


Step-19: The final output is as follows.

You might also like