How to Install Java JDK 22 on Windows 10

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to Amit thingss in this video we will learn how to download and install the current Java version Java 22 on Windows 10 with that we will also see a sample example after installing let's start at first go to the web browser I am using Chrome you can use any web browser on Google type Oracle Java press enter on pressing enter the official website is visible oracle.com click on it on clicking we have reached the official website now go to top right and click on download Java now all the versions are visible you can see Java 22 is visible here it is Java j22 and we want for Windows click on the Windows tab here in three files are visible we need to click on the installer file exe 163 MB click on it to download download started let's wait it's only 164 MB we have downloaded the exe file right click and click open to begin the installation minimize now the installation will start the setup started click next now our Java JD 22 will get installed in the following folder it's fine click next now it will complete the installation successfully installed click close now let us set the path now go to the path wherein we installed Java C drive program files and here in you can see Java we installed it here jdk 22 go inside it go to the bin path copy now go to start type environment variables click on edit the system environment variables click open under Advanced here click environment variables okay now under system variables go to path double click on it click new and right click and paste the same path click okay okay and the last okay now let us verify the installation go to start type CMD click open on CMD type the command Java space hyphen hyphen version and uh press enter it's visible that means we successfully installed Java 22 now let us quickly run our program I'll go to the path you can create a new file anywhere on C drive D or e Drive let's say I'll go for e Drive here I'll right click new and create a new text document okay I'll name it let's say I'll name it studiopia let's say I'll name it studiopia okay and you can see the path is txt I'll right click and rename here in set Java do Java and keep the cursor here and press enter do you want to change the file name extension yes okay so we have our Java file now here it is type Java if you're not getting the extensions here and you're unable to rename on Windows 10 go to view select file name extension okay I already selected it okay it vanished because I already selected it therefore it was visible that's it now you can open this file right click you can open with notepad++ if you're not having it go to open with an and click notepad now let us write our first code always remember the class name will be equivalent to the file name so our file was studiopia therefore a class name will also be studiopia okay now I'll type print let's say print my name let's say print my name okay that's it let us see the code here the class keyword will allow you to add the class name which is studiopia Here Comes public static void Main this is an excess specifier this static will allow the following main function to be called without the need to instantiate a particular instance this is our return type void main is where the actual Java application Begins the entry point these are for command line arguments okay that's it system.out.print l is used to print anything in Java system is our predefined class out is our output stream and print Ln method will allow you to display the string that's it file save okay now we will run it so following is our path e Drive and this for the CMD so how we will reach e Drive now to reach any Drive type the drive Name colon and and press enter here in I'll Di and you can see our file is visible stop. Java here it is now what I'll do I'll type Java C that mean Java compile the name of the file studiopia do Java okay now what will happen when I'll press enter if there won't be any error a class file will generate here I'll press enter now I missed the semicolon okay no problem okay semicolon file save now I'll type the same command again you can use the arrow keys okay so you can see the same command Java cace stop. Java press enter now you can see a class file will generate that means we successfully compiled our program to run it type Java space studiopia okay press enter and you can see Amit one printed that means we successfully ran our first program and printed a message Amit dwan so guys we successfully installed Java and run our first program if you want a free tutorial go to our website studiopia dcom tutorials Java and here is a tutorial you can see all the chapters okay 38 chapters thank you for watching the video
Info
Channel: Amit Thinks
Views: 9,839
Rating: undefined out of 5
Keywords: Install Java JDK 22, JAVA JDK 22, Install Java 22, Install Java, Java, Set Java Environment Variable, Learn Java, How to install Java, Install Java on Windows 10, Install Java 22 on Windows 10, Windows 10, Java JDK 22, Amit Thinks, Studyopedia
Id: buECPGQlvV0
Channel Id: undefined
Length: 8min 26sec (506 seconds)
Published: Thu Mar 21 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.