Solved "Unsupported Java detected (61.0). Only up to Java 16 is supported" error in a java 17 server

ac124

New member
Jan 19, 2024
1
0
1
So, i updated the java version of my server from java 16 to 17, but it says unsupported java version
Server marked as starting...
Pulling Docker container image, this could take a few minutes to complete...
Finished pulling Docker container image
java -version
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
java -XX:+UseContainerSupport -XX:InitialRAMPercentage=100.0 -XX:MaxRAMPercentage=100.0 -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar paper-1.16.5-git-794.jar
Unsupported Java detected (61.0). Only up to Java 16 is supported.
Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 0
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds...
[Pterodactyl Daemon]: Updating process configuration files...
[Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@pterodactyl~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
[Pterodactyl Daemon]: Finished pulling Docker container image
container@pterodactyl~ java -version
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
container@pterodactyl~ java -XX:+UseContainerSupport -XX:InitialRAMPercentage=100.0 -XX:MaxRAMPercentage=100.0 -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar paper-1.16.5-git-794.jar
Unsupported Java detected (61.0). Only up to Java 16 is supported.
container@pterodactyl~ Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 0
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

using last 1.16.5 paper version

version
[08:46:54 INFO]: Checking version, please wait...
[08:46:55 INFO]: This server is running Paper version git-Paper-794 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
You are running the latest version
Previous version: git-Paper-790 (MC: 1.16.5)

and 34 plugins

plugins
[08:46:07 INFO]: Plugins (34): BlockParticles, BottledExp, Campfire*, CaulCrafting*, CMILib, ColoredSigns, CraftDisplay, CraftEnhance, CrazyCrates, Curses, EmeraldTools, Essentials, EssentialsChat, HolographicDisplays, ItemEditor, LuckPerms, Minepacks, MoreOres, Multiverse-Core, NoJumpBreakCrops, OldCombatMechanics, Ping*, PlaceholderAPI, PlayerKits, ProtocolLib, RainbowBlocks*, RealMines, Shopkeepers, SimpleSit*, SkinsRestorer, TerminatorPlus, Vault, WorldEdit, WorldGuard