How to Install Java on Windows 10/11 [ 2023 Update ] JAVA_HOME, JDK Installation

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone I welcome you to my channel so  happy New Year all so today I'm going to show   you how to install the latest version  of Java on a Windows operating system   so to install Java you need to First simply go  to favorite browser and in that this bar it is   simply search with jdk download so remember it's  jdk download not Java download so don't worry I   am going to put this link in the description so  you can just simply you know click on that link   in order to land over this Java download page so  here I need to click on Java download and you'll   be you know landed over to Java download page  and this link you will get in the description   as well so you can directly you know come to this  page by clicking on that link in the description   so once you are here you need to scroll down and  you can see that our Java 19.2.1 is available to   download for Linux Mac OS and windows so  depending upon what operating system you   are using Linux Mac OS or Windows you need  to switch to those Tab and to click on this   MSI installer okay so just you know simply  click on this download and it will going to   start downloading our Java the MSI one MSI  basically means Microsoft installer okay   so since we are installing it on Windows I'm  going to choose MSI installer so here you can   see that our Java is rightly downloaded so  just you know simply click on the installer   and here just simply click on next so I'll just  simply minimize my browser and here is going to   be you know where Java is going to be installed  that is the C program files in Java jdk 19. if   you want to change the installation destination  you can easily do that by just simply clicking on   this change button but I'll be recommending  you to keep this default and click on next privileges just simply click on yes and you  can see our Java is rightly started installing so installing Java will take some time about  you know two to three minutes I would say   so let's wait for some time and then I'm  I'll be again coming back to this video yep so welcome back and now you can clearly see  that our Java is rightly installed so you can   just simply close it so now that you know that our  Java is rightly installed it's time to do a very   important step so for that you need to click on  the search icon and here just simply search with   Environ and you will get edit the system  environment variables so here you need to click   on that and it will go into open system properties  window you need to click on environment variable   and here you will get system variables so you  need to click on path and then you need to click   on edit so this will open edit the environment  variable window so here you can see that we have   several paths so on here we need to add our Java  path so to get that Java path you need to go to   you know C drive so you need to click on the  C drive and then you will get program files   so just simply go inside program files and then  you will get your Java folder go inside our Java   folder and you'll see Java 19 rightly installed  over here so go inside that java19 folder and   then you will get bin folder so you need to go  inside bin folder and you can see that we have   landed over this program files Java jdk 19 and Bin  okay so now you need to click on this address bar   then right click and copy so what we are doing  is we are copying this you know bin location   so you need to minimize now this and again come to  edit environment variable click on new then right   click and paste the path so similarly you can see  that we have several other paths so here similarly   we need to set this Java path over here okay this  is a very important step just simply click on OK   and now it's time to set Java home so you need to  click on new over here and in variable name just   type Java underscore home okay and again paste  that path but this time remember to delete this   bin folder okay so just simply hit delete  button to delete and keep it till jdk 19.   that's all just simply click on OK then again  okay and then again okay so you are you know   now installed Java so let's verify whether it  installed properly or not click on search icon   just type over here CMD and click on command  prompt so this will open our Command Prompt   and here just simply type Java space dash  dash version and hit enter and you can see   the latest version of java that is Java 19.2.1  is rightly shown so if you get this similar   message so all that basically mean is your Java  is also installed on your system so if you face   any difficulty you can always comment I am always  there to help you okay and if you like the video   please subscribe now what I am going to do is I  am going to create a new folder so I'll be naming   this folder as a Java practice and what I am going  to do is I am going to create a simple class okay   and I'm going to demonstrate how you can easily  run a Java program so hello world dot Java   hit enter change the extension to dot Java  just simply open that file with the notepad and I'll be writing a simple  you know class hello world and let's you know open the parenthesis and  close that and type public static void Main string args and you know open that bracket and close and here in this parenthesis  I am going to type system dot out Dot println right and I'm going to print hello  world over here so hello world so just you know simply go to file again save  it click on this address bar and type CMD hit   enter it will open our comment from right  at this directory now we need to compile   our program so Java C and name of our file is  hello world dot Java hit enter and you can see   it has rightly compiled and hello world.class  file is also generated so to run you need to   just simply type this time only Java and  then our class name which is hello world   and hit enter and you can see the  output hello world is rightly shown   so in this we can easily install latest version  of Java on your Windows operating system   if you face any difficulty please do comment in  our comment sections I am always there to help you   so that is basically all about this video please  do like share and subscribe and don't forget to   share with your friends thank you very much  for watching this video and God bless you all [Music]
Info
Channel: Geeky Script
Views: 818,211
Rating: undefined out of 5
Keywords: how to install java, install java, java, how to install java on windows 10, how to install java jdk, how to install java jdk on windows 10, Install Java JDK 19, JAVA JDK 19, Install Java 19, Set Java Environment Variable, Install Java 19 on Windows 10, how to install java on windows 11, how to install java jdk on windows 11, Install Java 18 on Windows 11, Java JDK 19, how to download java 2023, java jdk install, java 19, java 19 features, java 19 download, jdk 19 install
Id: SQykK40fFds
Channel Id: undefined
Length: 8min 2sec (482 seconds)
Published: Sat Jan 14 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.