How to Download and Install JDK | Set Path and JAVA_HOME for Java Programming

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to learning light in this video we will see how we can download and install JDK in Windows 10 operating system so the first thing that we have to do is we have to open up any browser installed in our PC I have Google Chrome so I'm going to open it up and here we can open up Google and we will search for JDK and if we look at the results that we get then the first result here is from oracle.com and it says java standard edition downloads so we're gonna click on this link and it will take us to this page and here you guys can see java standard edition and the latest edition is 14 and the latest version is 14 point 0 point 1 depending on when you are watching this video it will be different and just get the latest version so here Oracle JDK JDK download we cannot click on this link and it will take us to this page and here you have to make a note of the license agreement and that is for the personal use and for the development use it is of no cost but if you use it for any other purposes then you have to get the lessons from Oracle here we are using this for learning Java so it will be ok now if we scroll down here then you can see the JDK for different platforms here you guys can see for the Linux Mac and Windows for Windows we can see that there are two types one is the installer and another one is the compressed archive we're gonna get the Installer so here JDK and exe it is the executable file we're gonna download this one this version will be different depending on when you're watching this video so I'm going to click on this link and we have to accept the license agreement so I'm gonna click on this check box and then I'm gonna click on this download button and the download will begin wait for the download to finish and in my case it has finished so here what we do is we will click on this show in folder option which will open up the 4 where we have saved our download in my case it is the Downloads folder here in order to install in the JDK we will double click on this file and if the user account control ask for the permission then click on yes then click on s now the setup is running and here we cannot click on this next button and here it will display the path where the JDK will be installed make a note of it it is C program files Java and then JDK 14 point 0.1 if you want to install it in some other location then you can change it I'm not going to change it I'm going to click on this next and you know it will start installing the JDK we will wait for it to finish ok now it has finished installing now if you want to check out the API documentation or tutorials then you can click on the next step here I don't want to check out all those things so I'm gonna click on this close button and close this setup or the Installer ok now we have successfully installed JDK in our Windows computer the next thing that we do is we will set up a couple of environment variables so that we can run a Java program from any folder in the file system and also some of the programs are developed for Java can work properly so the first thing that we have to do is we have to open up the location where we have installed the JDK if you remember that then it was in the C Drive inside the Program Files and inside the Java folder so here we have the JDK 14 point 0.1 so we can open up this folder and we're gonna open up the bin folder and what we do is we go to this URL bar you know this location which shows the path and we gonna left click on this and it will highlight this path then we will right-click and we will copy this after that we close this okay now the next thing that we have to do is we have to go to the start and we have to open up the control panel and here you guys can see system and security click on that and here you will see system click on click on that and here you will see advanced system settings click on that and and here you guys can see enrollment variables click on that and now you guys can see user variables and system variables in this system variables you can see path just click on that and it will highlight then click on the edit button and here click on new and paste the path that we have copied so it would be C program files Java JDK 14 point 0.1 bin depending on the version that you have installed in your computer you know depending on when you're watching this video this in JDK 14 point 0.1 will be different and then click on outside and then click on OK now we have set the path enrollment variable now the advantage of this is we can run a Java program from any folder in this file system now the next thing that we do is we will set up another environment variable and it is called as the Java home some of the IDs and some of the applications developed for Java use this Java home environment variable and if you don't set it then those programs will not work so to set the Java home enrollment variable what we do here is in this system variables we will click on new and here in this variable name we will type in Java underscore home make sure that everything is in capital and then for this variable value what we do is we will click on this browse directory we can a click on that and we will open up the folder where we have installed Java so it is in this PC in the C Drive Program Files and Java and here you guys can see JDK 14 point 0.1 so we have to select this and after that click on ok so here you guys can see the path C Program Files Java JDK 14 point 0.1 now if you remember the value that we have used for the path environment variable it was this folder then slash bin so after that click on OK and you guys can see Java underscore home enrollment variable is set in here we can have click on this ok we can have click on this ok and we will close this now to make sure that we have set the path environment variable properly I'm gonna open up the command prompt so I'm gonna click on the start button I'm going to search for CMD command prompt and I'm going to open it up as the administrator and here we will type in Java C minus version now it will display the version of Java that we have installed which is 14 point 0.1 depending on when you're watching this video and which version you have installed it will be different so if you don't get the error message in here and you forget any version displayed in here then you're good to go so this is it guys this is how we can download and install Java JDK in windows 10 operating system and this is how we can set the path and the Java home environment variable if you like this video hit the like button if you don't like it there is like button if you want to say something then write that in the comment box for more tutorials like this go subscribe to the channel thank you for watching I'll see you later in the next video
Info
Channel: LearningLad
Views: 378,040
Rating: undefined out of 5
Keywords: Java (Programming Language), JAVA_HOME, JDK, Java Programming, Java JDK Installation, Java Path Environment Variable, Java JDK Windows 10, Java, Java JDK
Id: -O4QVijnA7Y
Channel Id: undefined
Length: 8min 29sec (509 seconds)
Published: Thu Apr 16 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.