Windows batch file immediately crashes again (MC server)?

Fl
- in Servers
10

I'm currently building a Minecraft server. I have the .jar file

"mcserver.jar" and I have also entered the same name in the batch file. But as soon as I start the .bat file, a window opens in the taskbar for 1ms and then closes again immediately.

Otherwise the command prompt works normally, and a batch file with "start mspaint" works otherwise.

Windows batch file immediately crashes again MC server
Av

Times restart the PC

Fl

I already tried it yesterday and today too. (The PC was off overnight.)

Av

Okay, then you have no choice but to delete everything again and set up the server again

Fl

I've already tried xD

Av

Then I would say take the PC and get xD out of the window

Sk

Enter times after

Break

a. And then see what the error message is.

Da

Judging by the screenshot, you have no Java installed.

Install Java 8 (JRE8) and then restart so that the command 'java' (as you use it in the .bat) becomes available.

Fl

Thanks, I forgot to install Java because I built a new PC and I completely forgot about xD

Fl

I just had to install JAVA because the PC is NEW and I forgot that

Da

Let us know if that helped ^^