@eny:
Thank you very much for your code example! I used your code in a new project, but it gives me just the error "File not found"
-- but that's maybe because of the start command.
But anyway, is there way to get the program working without using an external class? It's not THAT important, but it might help me to give better support to my program.
And it's a little bit hard for me to understand the way how the program works, because I'm just a beginner of coding in Lazarus...
@KpjComp:
I've attached the Source now but the project has become more complex, so it could be harder to read the Source...
Anyway, the interesting Unit for you should be the "Main"-Unit.
I've also added the Minecraft-Server-File to the archive, it just requires Java to start
.
The "Main"-Form will get the startparameters for the server from a file called "MinecraftServerManager_ServerFileInfo".
You can compile the program and, while debugging, you should easily click the "Start Server"-Button in the Main-Form to start the server. You'll see that the program hangs up
.
Thank you for your help, you both!
The file is to big for a attachment, so I've uploaded the archive @Zippyshare (
MinecraftServerManager.zip)
Greetings,
Lazarus
PS: By the way, I'm not a native English-speaker, I hope it's not too difficult for you to understand what I've written.