On Ubuntu 18.04, Java 11 is installed by default.
To change it, run the following commands:
sudo apt install openjdk-8-jdk
sudo update-alternatives --config java
Select the Java 8 version, and then verify the changes with:
java -version
Restart the Eclipse IDE and it should work.
- Log in to post comments