OpenJDK not working with a "CoreProtect" Minecraft plugin [duplicate]

Solution 1:

 sudo apt install openjdk-11-jdk

Seems you have only headless package installed (openjdk-11-headless).