Skip to content

Skullmc1/AnyJar

Repository files navigation

title

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.

How to Use

  1. Download the latest server.jar from the releases page.
  2. Place the server.jar file in the same directory as your actual server JAR file (e.g., paper.jar, spigot.jar).
  3. Run the server.jar file once. This will generate a server.yml file.
  4. Open the server.yml file and configure the settings to your liking.
  5. Run the server.jar file again to start your server with the custom startup command.

Configuration

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 to true to use the ram-max, ram-min, and server-jar options with automatic file type detection. If you set this to false, you can use your own custom startup command for full control.
  • manual-startup-command: If use-options is set to false, you can specify your own custom startup command here.

Why Use AnyJar?

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

Current Issues

  • killing the anyjar process, does not stop the child process.

About

A simple and flexible wrapper for any jar file. Allows you to customize the startup command.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages