Answer the question
In order to leave comments, you need to log in
How to install java on ubuntu?
The fact is that I have already installed everything that is possible (I need version 8).
Answer the question
In order to leave comments, you need to log in
Hello!
Given that you do not need Java for development and jre will be enough, then you will not need sdkman.
However, pay attention to the following:
1) whether java is installed
2) whether system variables are correctly registered
To begin with:
Type and find out the version
java -version
If it shows the version, then everything is ok. And if not, then you most likely do not have java installed.
Going further (installing java):
sudo apt update
sudo apt install openjdk-11-jre
sudo update-alternatives --config java
sudo nano /etc/environment
JAVA_HOME="{путь, который скопировали, включая директорию bin}"
source /etc/environment
echo $JAVA_HOME
The best way to install Java on a development machine is through sdkman:
https://sdkman.io/
I use it myself and recommend it to everyone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question