Can the Minecraft server eula not agree?

Ca
- in Servers
34

I tried to make a server for a few people, according to the instructions of this video:

I got to the point where I had a folder that contained the Minecraft.net Server.jar file and Run.bat, but there was no Eula text document. I then deleted the folder (yes, all) and re-downloaded the Server.jar file and recreated the Run.bat file, but that did not work. I did that again four or five times (yes, I'm a bit incompetent sometimes), and now I'm trying it here.

When I open run.bat, the cmd says:

C: \ Users \ my name \ Desktop \ minecraft server> java -Xmx4096M -Xms4096M -jar server.jar
Invalid maximum heap size: -Xmx4096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program wants to exit.

C: \ Users \ My Name \ Desktop \ minecraft server> PAUSE
Press any key…

Ja

You did run.bat too?

za

Create it yourself with the following text

#By changing the setting below to TRUE you are indicating your agreement to our EULA https://account.mojang.com/...raft_eula).
#Mon Mar 20 21:15:37 PDT 2017
eula = true

Ca

Yes ^^ "

Ca

Since the time / time zone is wrong, is that a problem?

Ca

Did it, does not work (did that before, even with my time zone, time, etc.)

za

What happens when you start run.bat?

El

Take a screenshot of the directory with the files and show your .bat file what's in there. Guess that something does not fit…

Ca

Java -Xmx3072M -Xms3072M -jar server.jar PAUSE is in run.bat

I omitted the nogui because Minecraft.net read: "Should you want to start the server with its graphical user interface?" You can leave the "nogui" part.

I tried it before with nogui anyway, that did not work either

Ch

The name of the Minecraft version file (eg Spigot-1.8.8.jar) is also noted in the run.bat?

run.bat

java -Xmx3024M -jar spigot-1.8.8.jar
PAUSE

the spigot-1.8.8.jar, MUST match the server version (in this case spigot-1.8.8.jar).

The -Xmx3024M is the storage space of the server, the more you specify, the more plugins or players the server can hold.

For example, if you have a spigot-1.14.2.jar file now, your startup feature should look like this:

java -Xmx3024M -jar spigot-1.14.2.jar
PAUSE

After that, the server stops and you have to agree to the EULA.

Then it should work.

Ca

I added later in my question, the command line opens and inside is what I've written formatted

Ca
-1

Oh! No, it was like this for me:

java -Xmx3072M -Xms3072M -jar server.jar nogui PAUSE

Ch

Please remove once the "-Xmx3072M", so that only once "-Xmx3072M" is there.

za

How much RAM does your PC have? It looks like you've assigned too much RAM to the Minecraft server.

Ch

Java -Xmx3024M -jar server.jar
PAUSE

Please try this code as a startup file.

Mi

The problem is not related to the EULA, the server does not even get to examine it.

Invalid maximum heap size: -Xmx4096M

He can't even start working because the parameter is wrong. Either the device on which you want to run it does not have enough free RAM, or Java just can't take that much RAM from you. Can you even try to start the server with 512M RAM, he should always be able to do that.

Ca

Did I, answer from the cmd was:

C: \ Users \ my name \ Desktop \ minecraft server> java -Xmx3024M -jar server.jar

Error occurred during initialization of VM

Could not reserve enough space for 3096576KB object heap

C: \ Users \ My Name \ Desktop \ minecraft server> PAUSE

Press any key…

Ca

Oh okay, I'll try it, thanks ^^

Ca

How do I do that?

Ca

I think so

St

Your PC, on which the server should run, does not have enough RAM… Bzw, you assign too much RAM to…

za

Look in the system info. To do this, simply search Windows System Info in the Start menu.

El

And your MC server file is also called server.jar?

Java is installed?

Is there even a console / interface?

Ca

I already have it

Ca

Okay… Jap are eight

Ca

Yes it is called, yes it is

And if I understand you correctly, then the console opens, yes.

Ca

Have it done now with a GB, now I think I can

El

The console I mean is a gray / white window where the status of the server is noted. The black is the Windows console. Eig you should see 2 windows. But I already read that you have assigned too much RAM that Java can't reserve. So you have to reduce vlt to 2048 …

Ca

Yeah, thank you

Ja

Ok, it was not clear in the question.

was the picture there the whole time? How much RAM does the server have? So the whole pc in itself?

Ch

Yes exactly. Try 2024 instead of 3024 :)

St

Rather 1024, or 2048 … 3072, 4096 … That would be the right order.

Ch

Um, sorry, I'm prescribed.

za

What does the task manager say about your RAM usage before you start the server?

Ca

Have found the solution, many thanks ^^ "It was because I wanted to run a 4 (or 3) GB server, but my PC has not participated in. Now it was ok, but our router does not support port forwarding, so The whole thing did not work…