How to set JAVA_PATH & JAVA_HOME in Ubuntu or Linux

Опубликовано: 18 Март 2026
на канале: Techies 2.O
11,413
75

Hi guys,

In this video I will show you how to set JAVA path in Ubuntu. It's easy to set in Windows but in Ubuntu there are some complected to set.

So, Let's start.

Open Terminal Windows. Press windows key and type Terminal

For that first you have to install Java in you machine.

Type below command to check JAVA version
$java -version

Type below command and hit Enter key to set JAVA_PATH.
JAVA_PATH=/usr/lib/jvm/java-(version)/bin

Type below command to check java path is set or not.
echo $JAVA_HOME

That's it.

Thanks for the watching video. Don't forget to share, like and comment

Thanks again.