Recent Discussions
How to use -Dcom.mojang.eula.agree=true flag?
Unanswered
Cicada killer posted this in #questions
24 messages
0 views
Cicada killerOP
Hi, I'm trying to create a command line launcher for a Docker image of Folia. I'm stuck on the EULA part. My Java command looks like below.
But the -Dcom flag produces an error:
Does this approach not work anymore? Is there an alternative?
This is a Windows environment if that matters.
java -Xms1G -Xmx14G -Dcom.mojang.eula.agree=true -jar C:\serverfiles\server.jar --noguiBut the -Dcom flag produces an error:
Error: Could not find or load main class .mojang.eula.agree=true
Caused by: java.lang.ClassNotFoundException: /mojang/eula/agree=trueDoes this approach not work anymore? Is there an alternative?
This is a Windows environment if that matters.
@Cicada killer Hi, I'm trying to create a command line launcher for a Docker image of Folia. I'm stuck on the EULA part. My Java command looks like below.
java -Xms1G -Xmx14G -Dcom.mojang.eula.agree=true -jar C:\serverfiles\server.jar --nogui
But the -Dcom flag produces an error:
Error: Could not find or load main class .mojang.eula.agree=true
Caused by: java.lang.ClassNotFoundException: /mojang/eula/agree=true
Does this approach not work anymore? Is there an alternative?
This is a Windows environment if that matters.
Birman
Your cmd is probably just misparsing the entire startup flag, try using something like this:
java -Xms1G -Xmx14G "-Dcom.mojang.eula.agree=true" -jar C:\serverfiles\server.jar --noguiYoure adding it as a jvm argument
Not a program argument
@Cicada killer Hi, I'm trying to create a command line launcher for a Docker image of Folia. I'm stuck on the EULA part. My Java command looks like below.
java -Xms1G -Xmx14G -Dcom.mojang.eula.agree=true -jar C:\serverfiles\server.jar --nogui
But the -Dcom flag produces an error:
Error: Could not find or load main class .mojang.eula.agree=true
Caused by: java.lang.ClassNotFoundException: /mojang/eula/agree=true
Does this approach not work anymore? Is there an alternative?
This is a Windows environment if that matters.
Ruddy Ground-Dove
Why not use Docker Compose for this and then just launch through a script? What's the solution attempting to be solved here?
@Ruddy Ground-Dove Why not use Docker Compose for this and then just launch through a script? What's the solution attempting to be solved here?
Cicada killerOP
The image is meant to be used with a platform that doesn't support Docker Compose.
@Cicada killer The image is meant to be used with a platform that doesn't support Docker Compose.
Ruddy Ground-Dove
Kubernetes...?
Can't be Openshift or something.
Mm. Anyway assuming Kube because that's the only platform other than Docker or Podman that make any sense to do Minecraft in, I'd use Helm, Yoke, Kustomize, or Jsonnet, all of those solutions have Compose like methods for handling this task.
And for the random extra BS like Docker Swarm, Nomad, Openshift, really anything, they all have similarish declarative ways to handle it.
If you're using some bizarre nonsense outside of the standard sphere like OCI against systemd services for some reason I would suggest performing a stop and switching to anything else.
@Birman @Cicada killer Did this work?
Cicada killerOP
Going to try it in a sec
@Ruddy Ground-Dove If you're using some bizarre nonsense outside of the standard sphere like OCI against systemd services for some reason I would suggest performing a stop and switching to anything else.
Cicada killerOP
Thats a bold statement. Dare I ask why?
@Cicada killer Thats a bold statement. Dare I ask why?
Ruddy Ground-Dove
Systemd doesn't have any scaling, reconciliation, migration, recovery, anything.
We use Kubernetes explicitly because it has those things.
Frankly if you don't need those things you're better off with either Docker or Podman.
@Birman @Cicada killer Did this work?
Cicada killerOP
Ah yes thank you, that did work 🙂
@Ruddy Ground-Dove Systemd doesn't have any scaling, reconciliation, migration, recovery, anything.
Cicada killerOP
I never said anything about systemd though. You're making a lot of assumptions. 🙂
My solution has recovery and migration, though it's not a perfect solution. I'm limited by the technical competence of my team unfortunately. Scaling isn't feasible at this time due to cost limitations.
We might switch to a managed Kubernetes service if we end up needing scaling.
My solution has recovery and migration, though it's not a perfect solution. I'm limited by the technical competence of my team unfortunately. Scaling isn't feasible at this time due to cost limitations.
We might switch to a managed Kubernetes service if we end up needing scaling.
@Cicada killer I never said anything about systemd though. You're making a lot of assumptions. 🙂
My solution has recovery and migration, though it's not a perfect solution. I'm limited by the technical competence of my team unfortunately. Scaling isn't feasible at this time due to cost limitations.
We might switch to a managed Kubernetes service if we end up needing scaling.
My solution has recovery and migration, though it's not a perfect solution. I'm limited by the technical competence of my team unfortunately. Scaling isn't feasible at this time due to cost limitations.
We might switch to a managed Kubernetes service if we end up needing scaling.
Ruddy Ground-Dove
Generally I don't assume people have custom software when they're appearing as solos on Discord, systemd was the only likely outcome, to assume otherwise is stupid in 99% of cases.
Anyway Kubernetes isn't a good pick for most people, but then I'd ask why not use Docker Swarm mode?
Personally I think Swarm is half baked right now with a lot of issues, but I'd bet my life it's likely more stable than whatever magic you've cooked up, I'd know, I've been trying to replace Swarm mode recently and it's kinda rough.
Poorly designed it might be, but it's poorly designed with a lot of underlying polish and a very determined crowd that refuses to let it die.
Poorly designed it might be, but it's poorly designed with a lot of underlying polish and a very determined crowd that refuses to let it die.
@Cicada killer Ah yes thank you, that did work 🙂
Birman
Yeah, basically windows terminal is awful and it thought the dots served as an escape
Loading...
Loading...