AnyJar is a simple and flexible wrapper for running any executable file, designed with Minecraft servers in mind. It allows you to customize the startup command for your server or application, which is especially useful on hosting services that don't allow you to modify the startup command directly.
- Download the latest
server.jarfrom the releases page. - Place the
server.jarfile in the same directory as your actual server JAR file (e.g.,paper.jar,spigot.jar). - Run the
server.jarfile once. This will generate aserver.ymlfile. - Open the
server.ymlfile and configure the settings to your liking. - Run the
server.jarfile again to start your server with the custom startup command.
The server.yml file allows you to configure the following options:
ram-max: The maximum amount of RAM to allocate to your server (e.g.,1G,2048M).ram-min: The minimum amount of RAM to allocate to your server.server-jar: The name of the actual server file you want to run. This can be a.jar,.sh,.bat, or other executable file.use-options: Set this totrueto use theram-max,ram-min, andserver-jaroptions with automatic file type detection. If you set this tofalse, you can use your own custom startup command for full control.manual-startup-command: Ifuse-optionsis set tofalse, you can specify your own custom startup command here.
Many hosting services provide a pre-configured environment that doesn't allow you to modify the startup command for your server. This can be limiting if you want to use custom flags or a different JAR file than the one provided by the host.
AnyJar solves this problem by acting as a wrapper for your server. You can upload the AnyJar server.jar to your host and configure it to run your actual server JAR file with any startup command you want. This gives you the flexibility to run any server or use any custom flags you need.
You can also use this to run something else entirely, such as:
- Minecraft servers (Paper, Spigot, etc.)
- Discord bots
- Custom Java applications
- Shell scripts (
.sh) - Batch files (
.bat,.cmd) - Python scripts
- Any other executable files
- killing the anyjar process, does not stop the child process.
