Eclipse on unbuntu 18.04 does not work with java 11. uninstall the jdk and install the jdk 1.8 sudo apt install openjdk-8-jdk