A JVM starter in Rust
roast
is a small executable that launches a JVM, similar to what using jpackage
would output. It uses a config file to determine some options, following packr json format:
{
"classPath": [
"my-game.jar"
],
"mainClass": "io.github.fourlastor.gdx.lwjgl3.Lwjgl3Launcher",
"useZgcIfSupportedOs": true,
"vmArgs": [
"-Xmx1G"
]
}
In addition to launching the JVM, it hints Windows systems with hybrid GPU setups (NVIDIA Optimus, AMD PowerXpress) to use the discrete GPU.
roast
will look for the following in its containing folder:
- Config file
config.json
and the referenced jars. - A JDK/JRE (or a minimized image from
jlink
) in a folder calledjdk