I wanted to code my own plugin and therefore have a selfhost server on my laptop. Now I wanted to run start.bat again to start the server, but it closes again after a second or so. I have the 64bit version of JDK 15.0 SE and 8GB ram.
java -Xms2048M -Xmx2048M -jar spigot.jar nogui
Break
with the pause it only closes after pressing a button, without directly.
Thanks in advance, Milan.
Edit: I found the error: install Java 1.15.0.2 and restart your laptop, because java does not recognize the old files that are already there.
What does the file output?
Run it out (with the pause) and copy everything in here that it outputs.
What do you expect
you have NOGUI, so it should run as a service afterwards or something similar.
C: \ Windows \ system32> java -Xms2048M -Xmx2048M -jar spigot.jar nogui
C: \ Windows \ system32> pause
Press any key…
Without nogui
C: \ Windows \ system32> java -Xms2048M -Xmx2048M -jar spigot.jar
C: \ Windows \ system32> pause
Press any key…
Whether nogui or not doesn't matter. Both are possible.
Ok, that it doesn't show an error is weird. Normally he would have to say something. The spigot.jar file is also in the folder, right?
Otherwise try to do this as a user and not as an admin. Maybe he doesn't like it somehow, even if I don't know why, but well, Windows.
Is not a shame… Will probably have to look further. Will make a new folder and set everything up from the beginning.
Does your file name what you start your server on spigot.jar? If not, just change your server file to spigot.jar
If it still doesn't work, just take a break.
If it still doesn't work, just try to put nogui away, it might also work
Yes it does, but I found another solution
Then why are you still leaving your question online?