hello everyone i welcome you all to geeky script first of all a very happy new year to all of you today in this video i'm going to show you how to install java and after that i'm also going to show you how to run a simple hello world java program on our windows operating system so do watch the video till the end if you face any issues in middle you can always put a comment in our comment sections i'll try my best to help you and recently i have also started this geeky syntax channel so if you are interested you can always subscribe this channel so here in this channel i'm going to post regularly programming and coding related videos once i get you know a substantial amount of subscriber i'll you know regularly going to post and also i have started geeky script vlogging channel so if you're interested you can also subscribe my geeky script vlogging channel so now for java you need to just simply you know search over here jdk download and hit enter and this will show you this java downloads so you need to open that link and it going to redirect to the official site of oracle so this link i'm going to put right in our description so i can directly use that link to land over this site and here you can see if it's called down you can see that we have java jdk 21 17 all available to download right and you can see here a list of operating systems as well so here it is showing for linux you need to switch to this tab for mac os and you need to switch to this tab for windows so here under windows you can see that we have these three products right so from here i'm going to recommend you to download this x64 msi installer msi basically means microsoft installer all right so you click on this download link and what it's going to do is it's going to automatically start our download right so i have already downloaded it so i cancel this i'll minimize my browser i'll go to my download directory and here you can see we have already jdk downloaded over here so to install it just simply double click on it so this is our java installation wizard let's first minimize our download directory and here you can see the installation wizard so just simply click on next over here so this is where our java is going to be installed so on our c program files java then it's going to create a jdk 21 folder and within that it's going to install all these files so it is totally fine just simply click on next and you can see it will again ask you for administrative privileges just simply click on yes and there you go you can see our installation is rightly began right so this will take some time you know about a couple of minutes so once we are done with this i'm going to again come back to this video so welcome back and now you can clearly see that our java ac development kit is rightly installed so you can just simply close this now so now that you know that our java is installed it's time to set our environment path variable that's a very important step so for that what you need to do is you need to first simply go to your c drive i need to go to program files and within program files you can see that our java folder is now created so if you just open that folder you'll get the jdk 21 folder so version 21 that we have installed that folder is also created and here you'll be able to see lot of files right so from here you need to open this bin folder so in the open bin folder you'll again get going to see like this many files so what you need to do is you need to just simply click on this you know address bar and you need to right click to copy the path over here right so you need to copy this path so after copying you can minimize this now we need to go to this search icon and here you need to just simply type environment when you type environment you will get this edit the system environment variable you need to click this edit the system environment variable all right so when you click on that it going to open the system properties window so within here you need to click on this environment variable and you will get this window and here you need to click on this path and then you need to click on edit so when you click on that it's going to again show you this edit environment variable window so here you need to click on new and right click and paste that path over here so that same part that you are copying right from the zip program files java jdk 21 bin folder path is what we need to paste it over here once you are done with that you can just simply click on ok and then here you need to just simply click on new so here after setting that path it's time to set our java home so that's why here you need to give the you know variable name as java underscore home all right and here under variable value you need to right click and paste again that same path but this time you need to remember to delete this bin folder and to only keep this c program files java jdk 21 that's all just simply click on ok now so click on again okay and click on again okay so now you just know that java is installed but how to verify that right so for that you to again go to search and just simply type over here see it will open command prompt and here you just simply type java space dash dash version and hit enter once you do that you'll be able to see that java 21.01 which is latest version is that is showing up over here so if you get the similar type of prompt all that basically mean is your java is you know up and running so now it's time to create a hello world java program so over to this new create a new folder I'm going to name this folder as a java practice right and I'm going to you know go into that folder java practice folder and here I'm going to right click and click on this new text document and here I'm going to name this file as hello world dot I'm going to remove this dot text with dot java so do you want to change the file name extension yes and can see file name extension is changed but i want to mention in one point over here maybe you might not see this dot txt or the dot java extension over here so how to enable that so for that you need to click on this view and it click on the show and here you can see that file name extension is enabled so this is what you need to enable all right so this file name extension once you enable that you will be able to see this dot java dot txt or you know all these type of extensions now i need to open that file and here i'm going to open it using a notepad and i'm going to write a simple hello world code over here so class hello world and i'm going to you know open the parenthesis and i'm going to click tab and i'm going to write public static void min and within bracket i'm going to write string args right and again i'm going to tick that i press tab key on my keyboard and i'm going to write system dot out dot println and again within bracket i'm going to you know write hello world over here hello world and then i'm going to just simply go to file and save this file i'll go back to my folder and here i'm going to type cmd hit enter immediately we'll see that our command prompt are opening right in our the same directory so now if you just simply type java c then the file name which is hello world.java so hello world dot java and simply hit enter you will be able to see that our program are getting compiled successfully along with a dot class file generating over here right this hello world.class file so now to run you need to type this java but this time you need to type only the class name which is hello world.java so hello world right and hit enter and when you do that you're going to see the output whatever you have written on that program so that program's output you're going to see right in our console right see this way you can easily install latest version of java and you can you know start you know practicing all the assignments that you have get from your school or college maybe and i'll be highly recommending you to install intel ig idea as well so that will give you a proper you know graphic user interface where you know you can start writing any sort of java projects right so that's basically all about this video please do like share and subscribe both my geeky script and geeky syntax channel so so that i can you know get motivated and make more programming and coding type videos so do subscribe this channel and also if you're interested you can subscribe my geeky script vlogging channel so that's basically all about this video thank you very much for watching this video and God bless you all.