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

Опубликовано: 14 Февраль 2025
на канале: 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