I tried this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem.
sudo dpkg --configure -a
sudo apt-get install --reinstall openjdk-8-jre
Remove Java 7 JRE:
sudo apt-get remove openjdk-7-jre
I didn’t try LWJGL – Lightweight Java Game Library , but I found in the Ubuntu Software Center
...and if that doesn't do it...
Nick Cave - 20,000th day on the planet Earth