I have installed Oracle JDK 13 using the .deb file given on their official website .
But when I run the java
command, it is showing:
Command 'java' not found, but can be installed with:
sudo apt install default-jre
sudo apt install openjdk-11-jre-headless
What should I do?
The package
jdk-13.0.2_linux-x64_bin.deb
installs to/usr/lib/jvm/jdk-13.0.2/bin/{java, javac, ....}
, I.e. to use the oracle java, you will have to setup an "/etc/alternatives" link to a system PATH :And when that is done you can select the preferred java version (If more than one version is installed) :