Downgrade to OpenJDK 8
I had the same problem in Xubuntu 18.04 with Eclipse 2018-12 (4.10.0). It was working fine, but probably some update in the system (or to OpenJDK specifically) started this problem. In addition Gradle Tasks weren't showing up in the Gradle Window.
I solved the issue removing packages: default-jre
, default-jdk
, default-jre-headless
, default-jdk-headless
, all of them are "pointing at" openjdk-11
.
Then I installed packages: openjdk-8-jre
, openjdk-8-jdk
, openjdk-8-jre-headless
and openjdk-8-jdk-headless
.
Change eclipse.ini
's vm section to:
-vm /usr/lib/jvm/java-8-openjdk-amd64/bin
And now everything is working fine, and Gradle tasks are showing again. To clarify, I'm also using LibGDX.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…