Installed an instance of games/minecraft-server.
Was getting the following error when trying to start it:
Found a fix here which states:
When I tried to remove openjdk8,
Then did
Worked fine until I started the server and got the following:
I don't know enough about Java (or any code for that matter) to understand what the problem is.
Was getting the following error when trying to start it:
Code:
Error: A JNI error has occurred, please check your installation and try again Exception in thread “main” java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
pkg remove openjdk8
pkg install openjdk16
When I tried to remove openjdk8,
pkg
was also trying to remove minecraft-server, so I did:
pkg delete -f openjdk8
Then did
pkg install openjdk16
Worked fine until I started the server and got the following:
Code:
root@Bender:/usr/local/bin # ./minecraft-server
[13:35:55] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[13:35:56] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[13:35:56] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[13:35:56] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[13:35:56] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[13:35:56] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[13:35:56] [main/INFO]: Reloading ResourceManager: Default
[13:35:58] [Worker-Main-13/INFO]: Loaded 7 recipes
[13:35:59] [Worker-Main-13/INFO]: Loaded 1137 advancements
[13:36:02] [Server thread/INFO]: Starting minecraft server version 1.17.1
[13:36:02] [Server thread/INFO]: Loading properties
[13:36:02] [Server thread/INFO]: Default game type: SURVIVAL
[13:36:02] [Server thread/INFO]: Generating keypair
[13:36:02] [Server thread/INFO]: Starting Minecraft server on *:25565
[13:36:02] [Server thread/INFO]: Using default channel type
[13:36:03] [Server thread/INFO]: Preparing level "world"
[13:36:10] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[13:36:11] [Worker-Main-8/INFO]: Preparing spawn area: 0%
[13:36:11] [Worker-Main-10/INFO]: Preparing spawn area: 0%
[13:36:11] [Worker-Main-14/INFO]: Preparing spawn area: 0%
[13:36:12] [Worker-Main-8/INFO]: Preparing spawn area: 0%
[13:36:12] [Worker-Main-14/INFO]: Preparing spawn area: 1%
[13:36:13] [Worker-Main-11/INFO]: Preparing spawn area: 1%
[13:36:13] [Worker-Main-8/INFO]: Preparing spawn area: 1%
[13:36:14] [Worker-Main-9/INFO]: Preparing spawn area: 2%
[13:36:14] [Worker-Main-8/INFO]: Preparing spawn area: 2%
[13:36:15] [Worker-Main-10/INFO]: Preparing spawn area: 2%
[13:36:15] [Worker-Main-11/INFO]: Preparing spawn area: 2%
[13:36:16] [Worker-Main-8/INFO]: Preparing spawn area: 2%
[13:36:16] [Worker-Bootstrap-7/ERROR]: Unable to build datafixers
java.util.concurrent.CompletionException: java.lang.IncompatibleClassChangeError: Class com.mojang.datafixers.functions.PointFreeRule$$Lambda$1002/0x0000000838f5b5c0 does not implement the requested interface com.mojang.datafixers.functions.PointFreeRule
I don't know enough about Java (or any code for that matter) to understand what the problem is.