0:00
today I will be showing you how to
0:02
install Java on your windows 11 first go
0:05
to your favorite browser and search for
0:12
download click the first link which
0:22
you will see downloads for different
0:25
users click on the Windows option to
0:27
download for the windows OS click the
0:30
link beside the MSI installer it will
0:32
take a few seconds to
0:43
download open the installer and follow
0:49
prompts if you don't want to install
0:52
Java on your main drive you can
0:53
customize where you'd like to install it
0:56
otherwise just keep everything default
1:00
window security popup will show partway
1:01
through the install just click yes to
1:14
accept once it is installed close
1:19
it now that it is installed go to the
1:22
location where you installed the Java
1:24
program and open the Java folder
1:30
open the jdk folder open the bin folder
1:34
now click on the address bar and copy
1:46
address now we need to create a new
1:48
environment variable to do this open the
1:51
search bar and type environment variable
1:57
it click environment variables and then
1:59
find path then click edit with path
2:04
selected now we'll click new and paste
2:06
the folder path we copied
2:19
earlier then we'll click new and type in
2:22
Java unor home and again paste in the
2:24
directory we copied earlier but make
2:26
sure to remove the word bin from the end
2:37
select okay and close out
2:46
everything now open the command prompt
2:48
to check whether our Java installation
2:50
is successful in the command prompt type
2:53
Java dash dash version
3:03
it is showing our Java version and
3:05
runtime environment this means our Java
3:08
installation is successful now we will
3:10
create a basic hello world
3:15
program to do this first create a new
3:18
folder and name it as per your
3:25
preference in the new folder right click
3:28
and create a new text document
3:36
sometimes we cannot see the file type
3:38
extensions to enable this click on view
3:42
then click on show and then click on
3:45
extensions now it will show the file
3:47
type now rename the text file as hello
3:50
world and remove the txt and replace it
4:16
now open the file and write the hello
4:18
world program and save
4:23
it you can pause the video and write
4:26
down the small amount of text for the
4:28
demo script or follow the link in the
4:30
description to copy it
4:39
directly now in the address bar type CMD
4:43
and hit enter the command prompt will
4:46
open in the Java folder we
4:51
created now type Java c-space
4:55
helloworld.java and press enter it will
5:16
now type Java space class name which is
5:19
Hello World here and press enter it will
5:22
run the command and give us the output
5:27
world this is how we install the latest
5:30
version of java now you can start
5:35
assignments I hope you guys liked this
5:37
video If you like this video then hit
5:40
the like button and subscribe button if
5:42
you have any questions let me know in
5:44
the comments I will see you guys in the
5:46
next video thank you bye