How to Check Java,JDK & JRE version & location in Terminal
3 views
Jul 6, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you how to
0:03
check the installed Java version, the
0:06
JDK version, the JRE version inside your
0:10
system right inside the terminal itself.
0:13
So if you have installed Java, you can
0:15
access the version by simply typing the
0:18
command java-
0:20
version. So then it will exactly tell
0:22
you which version of Java you are using.
0:24
Right here you will see we are using
0:26
Java 23.0.2 2
0:29
and this is your JDK version the JRE
0:32
version. So and if you want to locate
0:35
where Java is installed on your system
0:37
so there is this command here which you
0:39
can say where
0:41
Java and simply type this command and
0:44
then it will return the full address
0:46
where Java is installed on your system.
0:48
So typically it is located inside C
0:51
program files and common files folder
0:54
and then we have this Oracle folder and
0:57
then Java and Java path. Let me show
1:00
you. So here you simply go to the C
1:02
drive and simply open this program files
1:05
folder and then we have this folder
1:09
which is common path
1:14
sorry common files. You will see this
1:16
folder. Simply go to this folder and
1:19
inside this we have this folder which is
1:21
Oracle which is the company which owns
1:24
Java. So simply go to this and here you
1:26
will see this Java folder
1:29
and then we have this Java path folder
1:32
as well which contains all the
1:34
executables out there which is your Java
1:36
compiler all these things.
1:40
So in this easy way here all your
1:44
things are located here. So in this easy
1:46
way you can find it.
1:52
So I think
1:55
if you want to locate uh I Java JDK
2:00
let me uh give you the command here.
2:08
And if you still doesn't install Java
2:10
here, you it's very easy. Simply go to
2:12
Google and just type here download Java
2:15
and go to the official website and
2:18
download the latest version.
2:21
Just select your operating system and
2:23
download.
2:24
It is available as you can see the
2:26
offline version as well. Select your
2:28
operating system
2:32
and then obviously you need to add this
2:34
inside your environment variable.
2:38
Just make sure so that you can access
2:40
Java directly from the terminal. So go
2:43
to the environment variables and add
2:45
this. I have already added this.
2:51
So the v the full path that I showed
2:53
you. Simply need to paste that part in
2:55
the environment variables.
3:01
So that's all that we need to do.
3:04
And also check out my website
3:06
freemediatools.com
3:07
uh which contains thousands of tools.