How To Fix Minecraft Server Batch (.bat) File Cmd Closing Instantly Without Generating Any Files

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
how to fix minecraft server batch dot bat file cmd closing instantly without generating any files in this video i'm going to be showing you multiple reasons why your batch file is opening for a split second closing instantly and not generating any of the required minecraft files as you can see guys i'm currently on my desktop here and i have my minecraft server folder here containing my minecraft server files i'm just going to double click on it here to open it as you can see in this folder i have my batch file and i have my server.jar file now if i double click on my batch file here you can see that the cmd terminal window opens up for a split second and then closes instantly but windows doesn't give us any feedback as to why this is happening to find the reason why windows cannot run this batch file we first need to edit our minecraft start server command here so all i'm going to do is right click on the batch file here and then left click on edit as you can see the batch file opens in a text editor here called notepad i'm just going to maximize this window here and as you can see what's contained in this batch file is the minecraft command to start your server in this batch file i'm going to be adding one word on a separate line here so i'm just going to left click in my batch file here press the enter key on my keyboard and write the word pause once you've typed that in navigate to the top left hand corner here to where it says file left click on it and then left click on save to save the changes you have just made to your batch file and all i'm going to do now is x out of the notepad now attempt to rerun your batch file so all i'm going to do is double click on my batch file now the cmd terminal window actually opens up this time and we're greeted with the following feedback so as you can see at the top here is the command contained within our batch file underneath it says java is not recognized as an internal external command operable program or batch file the file path location of a folder which contains all our minecraft files and the word pause which is what we added onto our batch file the important part of this feedback is at the very top here right underneath the command we executed so again as you can see it says java is not recognized as an internal or external command this basically means that you do not have java installed on your computer to fix this issue what you'll need to do is install java i'll put a link in the video description below and as a card at the top right hand corner of this video on how to install java sc development kit jdk in windows 10. this will fix your issue immediately if that doesn't work i'm going to cut the video now and i'm going to show you another method to fix this issue all right guys the next issue is that we do have java installed and when we run our batch file so i'm just going to double click on the batch file here you can see that we get the following feedback from our server now remember to include the word pause in your batch file like we did in the first method here so as you can see at the very top here it says error colon a jni error has occurred please check your installation and try again exception in thread main dot unsupported class version error colon net slash minecraft slash server slash main has been compiled by a more recent version of the java runtime class file version 60 this version of the java runtime only recognizes class file versions up to 52 and then you get a wall of text basically this feedback means that the java you have installed on your computer currently is not capable of running the minecraft server and you'll need to update your java version previous versions of minecraft required at least java version 8 from java.com however for the latest release of minecraft 1.17 and up you'll need java sc development kit 16 and above found on oracle.com again i'll put the same link in the video description below and as a card at the top right corner of this video on how to do this it's the same video that i told you about at the start of this video alright guys again i'm going to cut the video and i'm going to show you the next thing you can do if this fix doesn't work all right guys as you can see i'm back in my minecraft server folder here which contains my batch file and my server.jar you've installed java and made sure it's the latest version but your batch file still won't run and generate your minecraft server files so again if you're still encountering this difficulty i'm going to show you what to do here so i'm just going to double click on my batch file again here and this might be the feedback you are getting when you run your batch file so again right underneath the minecraft start server command it says error colon unable to access jar file minecraft underscore server 1.17.jar what this means is that the batch file when executed is unable to find the jar file called minecraft underscore server.1.17 the reason for this is is that the command to execute your minecraft server is telling your computer to run the jar file named minecraft underscore server.1.17.jar however your.jar file is not actually called this and is in fact called server.jar so i'm just going to restore down this window here just to show you what i mean so as you can see the jar file here called server and file type is executable jar is actually called server.jar but your command actually says minecraft underscore server.1.17.jar or whatever the current version of the minecraft jar is so you'll need to correct your batch file to match the file name of your jar file to do this make sure your cmd terminal window is first closed right click on your batch file left click on edit and delete the current file name of your jar file so just delete everything before dot jar here and then replace it with the name of your jar file for me it's server so i'm just going to type server here once you've entered the word server you can now remove the word pause so i'm just going to delete pause here and then left click on file and left click on save and close notepad or whatever text editor you are using to edit your batch file with all that's left to do now guys is to run our batch file once again so i'm just going to double click on it here and as you can see the cmd terminal window opens here and let's wait and see if our minecraft server files such as the eula.txt is generating and as you can see guys our minecraft server files have indeed successfully generated now if you are still having issues with your batch file and you have tried all the fixes in this video so far and none of them have worked for you then most likely your computer is not capable of running a minecraft server and you'll need to either upgrade your computer's hardware such as a cpu and ram for example or you'll need to close some programs using all your computer's resources required to run your minecraft server to close these apps or programs down to free up some space to run your minecraft server navigate to the bottom left hand corner here on your taskbar to the search box here and left click on it search the following task space manager once you've done that the best match should be the task manager app navigate to the right hand side here and left click on open and what you need to do here i'm just going to maximize this window is look at the cpu usage memory and disk usage and see what apps programs or background processes are taking up all your computers resources you can also left click on the performance tab here right next to processes to see exactly what's going on in your computer alright guys that pretty much concludes the video on how to fix minecraft server batch dot bat file cmd closing instantly without generating any files if you enjoyed this video be sure to give it a like comment down below and most importantly of all subscribe to support the channel i'll see on the next video
Info
Channel: Websplaining
Views: 115,493
Rating: undefined out of 5
Keywords: How To Fix Minecraft Server Batch (.bat) File Cmd Closing Instantly Without Generating Any Files, batch, .bat file, minecraft, minecraft server, command prompt, Minecraft: Java Edition, batch file does not open cmd or make new files, java is not recognized as an internal or external command operable program or batch file, bat, cmd, Error: A JNI error has occurred please check your installation and try again, Error: Unable to access jarfile minecraft_server.1.17.jar, update java version
Id: weGy4zM9NXE
Channel Id: undefined
Length: 7min 56sec (476 seconds)
Published: Sun Jun 20 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.