Hello, Show I'm trying to start a personal server on my PC as I've done in the past, however this time when I run the server.jar file I got from the MC site, I get this JNI error. I searched across several sites and they all pretty much just say update java, which I've done, I literally downloaded the latest java from the java site before installing both MC and trying to install the server, the game runs fine, but the server won't. This is the error Then after clicking ok I'm trying to run the regular 1.17.1 server without any mods. My game is also unmodded except for Optfine. Does anyone know a solution for that? I made servers for my friends on my PC so many times and this is the first time I ever saw this issue. Thanks! Edit: Solved following a hint from MC forums, posted the link on comments with the solution. Advertisements You have encountered this JNI Error error message? Don’t panic! The problem can usually be solved quite quickly – and here you can find out how. Have you encountered this error message or popup?
The problem comes from the fact that your JRE (Java Runtime Enviroment), that is your installed Java version and your JDK (Java Development Kit) do not work together correctly.Advertisements Now there are several possible solutions for you. Just choose the scenario that applies to you: JNI Error in Windows CMD JNI Error when starting a Minecraft Server JNI Error in Minecraft TLauncher JNI Error in Windows CMDThe problem can occur if you want to call a .jar file via command line (Windows CMD), e.g. via the command java -jar File.jar or if you have compiled your program with Eclipse before. To fix the error, you need to adjust the environment variables for Java.
If you don’t have a Java JDK installed yet, you can download and install the .exe installation file (“x64 Installer”) here.
JNI Error when starting a Minecraft ServerIf you try to start your Minecraft server via the official server.jar (error occurs since version 1.17), you may get this error message:
JNI Error in Minecraft TLauncherThis error message can also appear when launching the Minecraft TLauncher.
Advertisements Java JNI error message still appears?
I hope that you were able to fix the JNI error with the help of this post. If this is still not the case, feel free to write me a comment. What did you think of this post? All content I provide completely free! If you want to support the costs for the operation and my time a little bit, you are welcome to donate me a small amount of your choice. Thanks! 💙 Donation Related Posts This can also interest you Advertisements |