This question already has an answer here:
I have downloaded and installed JDK 9 with NetBeans. NetBeans runs fine and I build test application that also runs fine from IDE. But if I run
java command in terminal I have error
'java' can not be found in the following package: ...
So, where is my java? Should I download JRE separately?
sudo update-alternatives --config java
update-alternatives: error: no alternatives for java