You probably have the wrong Java version (e.g. The latest). Try installing Java 8 on your server. But I could help you better if you would give a little more information about what kind of server it is (I suspect a bungee cord console) etc. Or what you run the server on (computer, server or something).
Thank you, habs solved this way (java 8 installed)