How to Install Java JDK 17 on Windows 10

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to amit things in this video we will see how we can easily download and install java 17 on windows 10 64 bit so java 17 released let us quickly see how we can easily install it so at first go to the browser here in type oracle java press enter on pressing enter you can see the official website is visible oracle.com java you just need to click on it click here now you can see the official website is visible click on download java here you can see all the downloads are visible we will also mention this link in the description now below you can see java 17 lts lts means long term support is available now go below here in you can see java 17 for linux macos as well as windows is visible we want for windows 10 so i'll click here on clicking you can see the compressed archive installer as well as ms installer is visible and x64 means it is for 64-bit windows 10 operating system so i'll go here i want this i want the exe file here it is you can see the link when i'll click here it will start downloading i'll just click here it's only 151 mb click on it now you can see the download started you need to wait for few seconds so guys as you can see here we have successfully downloaded java 17. double click on it to install minimize this guys now you can see the installation started click on next now you can see our java 17 will get installed under program files java directory it will create on its own it will take 420 mb of space if you want to change the location you can click on change but i'll keep the default so i'll click on cancel now let's click on next so it will create a jdk folder also within the java directory so nowadays you don't need jre so as you can read here under jdk jre is provided so we don't need to add it separately that's it click on next now the installation started you need to wait for a few seconds so guys now you can see we have successfully installed it is written here click on close now we need to set the path before that we need to know that where we installed java we installed in c drive program files and here in you can see java folder got created double click on it here it is jdk 17 and here is the path here is the bin path also so you just need to copy this path right click and copy that's it now go to start type environment variables since we need to set the environment after that you can see edit the system environment variables are visible click on open here now you can see under system properties advanced click on environment variables now here are all the paths set on the system go for system variables because it will set the path for the entire system this will avoid any future path conflicts so here in you can see path is visible select it and double click on it i just double click you can see all the paths are set here now we need to add a new path so obviously we will click on new on clicking new you need to paste the path copied before right click paste that's it you can see we have pasted it now i'll just click on ok okay and the last okay that means we have successfully set the path now let us see that we have successfully installed java or not java 17 or not go to start type cmd click on open here to open the command prompt here is the command prompt now here we need to check that we have successfully installed java or not for that type the command java space hyphen iphone version and press enter here and you can see java 17 it released today 14 september and we have installed it this is java 17 long term support lts and rest of the details are visible so you have installed java that means jdk and gre you have installed it now we will see how we can run our first java program after installing it for that guys what you can do you can create a folder anywhere let's say i'll create a file or folder here i'll create a folder let's say the name i'll give is amit programs okay now i'll double click right click here go to new create a text document now i'll name it let's say i'll name it to demo dot i'll change the extension by removing pst and typing java because i hope you know for java program we need to have a java extension file now when i'll keep the cursor here or press enter it will ask that you need to change the file extension or not let's do it herein you can see you want to change the file extension you want to change it yes now we have a java file here you can see it is written java source file when you keep the cursor you can see it is a java source file right click and open with any editor you can open with notepad from here or you can open with any editor like notepad plus plus i'll open with notepad plus plus now here it is guys now we will run our first java program always remember guys the name of the class here should be same with the name of the java file that means demo.java means our class will be demo now let's write a quick code so guys now you can see we wrote our first program so here it is uh class name is demo within published static appointment we wrote this we wrote two lines for printing system.out.println used for printing herein string arcs is basically for command line arguments if you want to learn more about command and arguments you can refer the link in the description of this video so we wrote two lines we will print this studypeda java 17 tutorial and our first java 17 program here and you can see now i'll go to file and save it file save now we have this link on the desktop minimize this here this is the path copy this path now go here first we will reach the desktop or we can straight away go to the file by just copying this path so i guess this is the best way right minimize since we are changing the path i'll write cd that is change directory when i right click it will automatic is the same path here you can see it has pasted the same path press enter now you can see we have reached the omit programs now type dir command here you can see drl command shows that amit programs is having demo dot java file here it is here it is visible a demo.java now to run your first java program type java c demo.java the file name here java c means java compiler press enter here and you can see we did and we did an error so go to the code here and you can see we missed uh parenthesis now it's fine go to file save now since we did the changes we need to compile it again type the same java c space demo.java and press enter now you can see there is no error we successfully compiled it now to run it type java java space demo that's it and press enter on pressing enter you can see we successfully ran our first java program here and you can see both the lines are visible here printed successfully so guys in this video we saw how we can successfully download and install java 17 on windows 10 we also ran our first java program so guys thank you for watching the video if you liked it do subscribe to our channel with things
Info
Channel: Amit Thinks
Views: 427,948
Rating: undefined out of 5
Keywords: Install Java JDK 17, JAVA JDK 17, Install Java 17, Install Java, Java, Set Java Environment Variable, Learn Java, How to install Java, How to install Java on Windows 10, Install Java 17 on Windows 10, Windows 10, Java JDK 17, Amit Thinks, Studyopedia
Id: cL4GcZ6GJV8
Channel Id: undefined
Length: 8min 3sec (483 seconds)
Published: Tue Sep 14 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.