Hello everyone welcome back to the breakdown today i’m going to be talking about how to fix the jni error when starting a minecraft server this is a simple little air i’m going to mention it in most of my server tutorials but for those of you who don’t watch our tutorials To fix your you know create your servers here’s how you can fix this little issue versus i do want to say that this video is written by apex minecraft hosting and on apex you don’t have to worry about little issues like this they’re all taken care of by apex themselves All you have to do on apex is start your server and then add plugins if you want add mods if you want worry about managing your server not about fixing issues like this java issues ddos all that stuff apex takes care of it for you they also have 24 hours seven Day a week support such as you have an issue on your server you can reach out anytime day or night for some support we’d love to stay back so much we have strong whatsoever played our breakdowncraft.com on them so we truly put our money where our mouth is when it Comes to apex minecraft touching check it apex the first link down below the break down xyz slash apex get your server up and running now here’s the deal this issue is pretty simple i’m going to start a minecraft server here and basically we get an error right when you Double click on this we get this error it’s a jni error has occurred java virtual machine launcher please check your installation and try again you might be like what this is weird i’ve always been able to start micro servers in the past and actually i have a vanilla 1.16.5 server here for example And this should work right we can double click on server.jar and it’s going to open up it’s going to work like there are no problems this is new for 1.17 servers right the reason for this is because java switched from java 8 to java you know basically the most Recent version of java now java 8 will still work to run minecraft but the back end is not going to work anymore you’re going to need java 16 which i’m going to show you how to get here first though let me go ahead and do a Real quick jump cut and i need to stop this server there we go that server is now stopped as you can see it worked on our 1716 server but on the 117 server double click on server.jar it’s not working we do have the ela.txt file on there says java exception has occurred How do we fix this issue well it’s honestly pretty simple right i ran into this while i was doing my minecraft server tutorial and this tutorial right here is outdated i’m going to make a new tutorial that goes right there it’s going to be uploaded a little later but i want to Get this one out pretty soon because i figured a lot of you would be having issues with this right so nevertheless here as you can see this is our java tutorial and it’s all been updated it’s now all changed from what it was before to how to get the correct version of Java for servers and mods so when you come here click on this yellow download link and when you click on that link it’s going to take you here which is a new download page for the java sc development kit 16 which is what you need to run not only Minecraft servers but i’m guessing minecraft mods moving forward i’ve seen forge and they are going to be upgrading as well so it’s something we need to look at so never let us come over here to the right hand side we want to find the windows x64 installer click on the a little download Link to the right of that it’s not going to come up and say i accept the you know do you accept these terms of service we do and click download is then going to go ahead and start downloading down here in the bottom left of google chrome now you Shouldn’t need to keep this file oracle is a very trusted developer but you might need to save it on mozilla firefox because i believe they make you save everything but on google chrome it’s probably just going to download if you do need to keep it it’s 100 safe oracle Are the developers of java 100 aboveboard there now we go ahead and minimize our browser if we go ahead and refresh my desktop we will see here is the jdk right there it is if this isn’t on your desktop it’s going to be in your downloads folder which you Can find by clicking the little windows icons in the top left of my screen probably in the bottom left of your screen go ahead and watch on the top bottom of your screen type in downloads you got a downloads file folder here and then you will find The jdk in this file folder i’m going to drag to our desktop though because that’s just easier now here’s the deal let’s go ahead and uh let’s go ahead and try this one more time we’re going to try just to show you that this is what’s going to fix this so If we double click on server.jar we get this error you know it plays the air noise and a jni error has occurred please check your installation and try again from the java virtual machine launcher and then we do get another error there that a java exception has occurred right So nonetheless let’s go ahead now and double click on the jdk we downloaded right just double click on this right here and this is the java development kit so it’s going to go ahead kind of load up an installer here might take it a second but that’s okay Basically it’s just going through and loading up an installer preparing to install and then it’s going to open up this now as you can see it’s a really easy widget you just click next and then click next again and then it’s going to install java sc development kit now it might ask Me some weird stuff because i have already fixed this and then undid what i did in order to do this tutorial for you all that’s what we go through here that’s okay but nonetheless as you can see it’s copying new files getting everything set up and then it’s going to eventually finish And when it does it’s instant it’s instantaneous you may have to reset your computer but i did not so we can go ahead and click close here and say reset i mean restart so just you know restart boom your computer no big deal you’re gonna be good but as you can see Here server.jar double click on it and it works that simple that easy as you can see it’s now opening up and getting everything launched it’s no longer giving us that jni error so i just wanted to upload this really really fast really really quick tutorial nothing over the top i’m going to be Doing an in-depth tutorial giving you a few more strategies on different things that could go wrong with java but uh this is just for this simple error and i wanted to upload it because i think a lot of people are going to be having it today and over the next few Months making a minecraft server if they’ve made one of the past or if they have and they need to update their jobs again our tutorial for java will be updating but for right now this is going to kind of serve as the basic tutorial before a Big tutorial comes out so there you go your minecraft 1.17 server is now live do apologize for any choppiness or lag that happened after i started this server unfortunately my computer just can’t keep up anymore with these modern minecraft servers we’ve got a new computer that we’re gonna be Making this summer but we’re just not quite there yet gotta get through this version it’ll be the last version we probably get it m417 i’m scrambling it now but there you go subscribe to the channel for more awesome content come play this on our server please breakdowncraft.com and Check out apex if you want to create a server without these headaches however we are here to help when they do happen now let’s just go ahead and type stop stop that server i’ll see you in the next video give it a thumbs up subscribe the channel i’m out peace Video Information
This video, titled ‘How to Fix the JNI Error in Java (Java 16 Tutorial)’, was uploaded by The Breakdown on 2021-06-09 19:00:05. It has garnered 189098 views and 4696 likes. The duration of the video is 00:05:37 or 337 seconds.
In this video, we show you how to fix the JNI error in Java 16. I specifically encountered this error when creating a Minecraft server. However, my guess is that this will become more common with other Java platforms as more programs upgrade to Java 16+. Luckily, in this video, we show you how to fix the JNI Java error and get your Minecraft server, Minecraft mods, or Java program working!
Start a 24 hour Minecraft server without any issues at Apex Minecraft Hosting in under 5 minutes! https://TheBreakdown.xyz/Apex
Download the Java JDK: http://TheBreakdown.xyz/Java
If You Are Still Having Issues Run the Jarfix!: https://TheBreakdown.xyz/Jarfix ——————————————— ★ Minecraft Server IP: Play.BreakdownCraft.com ► Store: http://Store.BreakdownCraft.com/ ★ Join BreakdownCraft on Discord!: https://BreakdownCraft.com/Discord ——————————————— ► Subscribe!: https://TheBreakdown.xyz/YTSub ——————————————— Start A Minecraft 1.17 Server!: https://youtu.be/IBSuoHVef2k Get Minecraft 1.17 Texture Packs!: https://youtu.be/tnhujzu8t2A ——————————————— **SOCIAL MEDIA** Facebook: https://Facebook.com/BreakdownCraft Twitter: https://Twitter.com/BreakdownCraft Instagram: https://Instagram.com/BreakdownCraft/ ——————————————— ★ My Gear Get your C920 Webcam: https://TheBreakdown.xyz/c920 Get your Blue Snowball: https://TheBreakdown.xyz/Snowball
About this video: This is a very quickly and simple tutorial that will show you how to fix the JNI error in Java when you encounter it in Minecraft. You could get this error when starting a Minecraft server, or you could get a JNI error when launching Minecraft Forge or start a Paper Minecraft server. You could also get the JNI error when running other Java programs, however, Minecraft is the most common game to have this issue. So, let’s go ahead and show you how to fix the JNI error in Java for your Minecraft server or Minecraft mods!
The JNI error is caused by something pretty simple. You do not have the correct version of Java for your Minecraft server or Minecraft mod. You aren’t looking for Java specifically though. You are actually looking for the Java Development Kit. This is what developers use to create Java applications like Minecraft servers and the Forge Mod Loader.
However, you also need the Java Development Kit in order to run these applications, and that is why you need the Java JDK in order to fix the JNI error on your Minecraft server. How can you get the Java JDK? Well, we have a link in the description above to the Java JDK. Specifically, we have a complete guide on how to get the Java Development Kit in the description above.
Once you are on our website, click the Yellow ‘Download Java Development Kit’ button to be taken to the Java JDK download. Once you are there, scroll down and click the down link next to the Windows installer. This will download the Java Development Kit installer. You may need to keep or save the installer depending on your browser.
After you have the installer downloaded, double click it on it. The setup for the JDK will open up. Click ‘Next’ and then click ‘Next’ again. The Java JDK will then install. Find ‘Finish’ when it is down. Finally, you will be able to start your Minecraft server, open up the Forge launcher, or run your Java program!
Congrats! You now know how to fix the JNI error with Java 16! If you have any questions about how to fix the JNI error in Java, let us know in the comments below, and if we did help you fix the JNI error on your Minecraft server, please give this video a thumbs up and subscribe to the channel if you haven’t already. It really helps us out, and it means a ton to me. Thanks in advance!
Note: Some of the above links are affiliate links. I may receive a commission at no additional cost to you if you go to these sites and make a purchase.