Skip to content

Forge 1.16.5 does not start properly #129

@Not-A-Normal-Robot

Description

@Not-A-Normal-Robot

When trying to run a Forge 1.16.5-36.2.42 server, it returns an error message:

Error: Could not find or load main class @libraries.net.minecraftforge.forge.1.16.5-36.2.42.unix_args.txt

This is due to an incorrect generated start.sh file:

#!/bin/sh
# generated by mcman
/home/notarobot/.sdkman/candidates/java/8.0.472-tem/bin/java -Dcom.mojang.eula.agree=true @libraries/net/minecraftforge/forge/1.16.5-36.2.42/unix_args.txt --nogui "$@"

However, forge-1.16.5-36.2.42-installer.jar does not generate a user_args.txt or anything like that. It instead creates an executable jar which should be used instead: forge-1.16.5-36.2.42.jar (source: https://forums.minecraftforge.net/topic/119131-forge-1165-install-but-with-not-the-runsh-and-not-unix_args-win_args-and-user_jvm_args/)

This should be used instead:

#!/bin/sh
/home/notarobot/.sdkman/candidates/java/8.0.472-tem/bin/java -jar forge-1.16.5-36.2.42.jar -Dcom.mojang.eula.agree=true --nogui "$@"

Platform: Raspberry Pi OS Lite 13 (Trixie), aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions