Bukkit 1.16.3 error message?

su
- in Plugins
1

After a long time I wanted to program Minecraft plugins again, but all the time I come across the following error:

org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: at / darkangxl / mg / randomteleport / main / Main has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin (JavaPluginLoader.java:139) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.plugin.SimplePluginManager.loadPlugin (SimplePluginManager.java:394) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.plugin.SimplePluginManager.loadPlugins (SimplePluginManager.java:301) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.loadPlugins (CraftServer.java:383) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.reload (CraftServer.java:874) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.Bukkit.reload (Bukkit.java:642) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.command.defaults.ReloadCommand.execute (ReloadCommand.java:27) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.command.SimpleCommandMap.dispatch (SimpleCommandMap.java:149) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand (CraftServer.java:758) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchServerCommand (CraftServer.java:743) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at net.minecraft.server.v1_16_R2.DedicatedServer.handleCommandQueue (DedicatedServer.java:381) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at net.minecraft.server.v1_16_R2.DedicatedServer.b (DedicatedServer.java:350) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at net.minecraft.server.v1_16_R2.MinecraftServer.a (MinecraftServer.java:1007) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at net.minecraft.server.v1_16_R2.MinecraftServer.w (MinecraftServer.java:846) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at net.minecraft.server.v1_16_R2.MinecraftServer.lambda $ 0 (MinecraftServer.java:164) ~ [bukkit-1.16.3.jar: git-Spigot-2740d5a-890130b]
at java.lang.Thread.run (Unknown Source) [?: 1.8.0_271]
Caused by: java.lang.UnsupportedClassVersionError: at / darkangxl / mg / randomteleport / main / Main has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0

How can I fix it?

La

I think your installed JRE is too NEW for Minecraft.

There's namely something that the runtime has a version 58 but is only supported up to version 52 …