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.