Raspberry Pi Java problem?

Tr
- in Servers
2

I want to run a Minecraft Spigot server on my Raspberry Pi 3 model B (I know that Raspberry Pi's are too weak for one, it's just for testing purposes) and have the following problem: The server ran flawlessly as a 1.8 server but now that I'm I wanted to upgrade the server to 1.12, I got the following error code:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org / bukkit / craftbukkit / Main: Unsupported major.minor version 52.0

and then there's a whole lot of other stuff. I mean, I realize that it is due to the Java version, but I have not managed to install the latest? Until now, only the oracle-java7-jdk package went, the jre did not work, the openjdk-7-jre or jdk did not work either. I just do not get any further?

bu

First: Which operating system?

Debian / Ubuntu: sudo apt-get install openjdk-8-jre

Fedora & Co.: su -c "yum install java-1.8.0-openjdk"

Co

Download the ARM package here: https://www.oracle.com/...33151.html

And then proceed similar to the following Ubuntu article (if Debian or Ubuntu):

https://wiki.ubuntuusers.de/Java/Installation/Oracle_Java/Java_8/