How to install Java on Linux Mint, Ubuntu, Other Linux Distributions

Published: 09 October 2022
on channel: WHAT & HOW
10,071
125

An easy installation guide on how to install the latest version of java in linux debian distributions (Ubuntu, linux mint etc).

1. Commands for java and javac setup

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-19/bin/java" 1

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-19/bin/javac" 1


2. jdk path to add in bashrc

export JAVA_HOME=/usr/lib/jvm/jdk-19
export PATH="$PATH:$JAVA_HOME/bin"



#jdk #java #javainstall #javalinux #linux_tutorial


Watch video How to install Java on Linux Mint, Ubuntu, Other Linux Distributions online without registration, duration hours minute second in high quality. This video was added by user WHAT & HOW 09 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,071 once and liked it 125 people.