Using Lazarus from a launcher
What a launcher has to do
The minimum:
- Start a Java 17 or newer JVM.
- Put
lol.trq.lazarus-<version>.jaron the class path, next to the usual Forge 1.8.9 libraries and the Minecraft 1.8.9 client jar. - Use
lol.trq.lazarus.launch.Lazarusas the main class instead ofnet.minecraft.launchwrapper.Launch. The program arguments do not change; keep--tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker.
That is enough: on first start Lazarus relaunches the JVM once with the agent and a corrected class path.
To skip the relaunch, also:
- Add
-javaagent:<path to lol.trq.lazarus jar>to the JVM arguments. - Put the Lazarus jar before Forge’s
asm-all-5.0.3.jaron the class path, or leaveasm-allout. Lazarus bundles ASM 9. - Add
-XX:+IgnoreUnrecognizedVMOptions --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow -XX:-UseBASE64Intrinsicsto the JVM arguments. The last one is the Java4Shell stopgap; without it the bootstrap relaunches.
Natives, -Djava.library.path, assets and authentication are handled as for stock Forge.
Official Minecraft Launcher
Run the jar and click OK, or run java -jar lol.trq.lazarus-<version>.jar install. Options:
| Option | Default |
|---|---|
--dir <path> |
%APPDATA%\.minecraft, ~/Library/Application Support/minecraft or ~/.minecraft |
--forge <id> |
the newest installed 1.8.9-forge… version |
--memory <MB> |
2048 |
It writes:
libraries/lol/trq/lazarus/lol.trq.lazarus/<version>/lol.trq.lazarus-<version>.jarversions/<forge id>-lazarus/<forge id>-lazarus.json: inherits the Forge version, sets the Lazarus main class, adds the jar, and asks for thejava-runtime-delta(Java 21) runtime, which the launcher downloads.- a profile in
launcher_profiles.json(backed up tolauncher_profiles.json.lazarus-backupfirst) with the JVM flags, and-javaagentwhen the jar’s path has no spaces. The launcher splits JVM arguments on spaces, so with a space in the path the agent is left to the bootstrap.
To uninstall, delete the version folder and the profile in the launcher.
Prism Launcher and MultiMC
- Create a Minecraft 1.8.9 instance and add Forge 11.15.1.2318.
- Open the instance folder and put
lol.trq.lazarus-<version>.jarinto itslibrariesfolder (create it). -
Save the component:
java -jar lol.trq.lazarus-<version>.jar prism > lol.trq.lazarus.jsonthen add it with Edit instance → Version → Import components (or copy it to the instance’s
patchesfolder and add{"uid": "lol.trq.lazarus"}tommc-pack.jsonafter Forge). - Settings → Java: choose Java 17 or newer and enable Skip Java compatibility checks, since Minecraft 1.8.9 declares Java 8.
- Optionally add the JVM flags from step 6 above under Settings → Java → JVM arguments.
The component only sets the main class and adds the jar; the bootstrap does the rest. It follows Prism’s and MultiMC’s documented component format; if your launcher version behaves differently, please open an issue.
Custom launchers
Read lol/trq/lazarus/libraries.json from the jar. It states the main class, the libraries to remove from a Forge
1.8.9 profile, and the JVM arguments, and it is what the harness and installer use.