How to install Forge 1.18.2 on a dedicated Multicraft Machine.

A group of my friends and I want to play a specific modpack that is on Forge 1.18.2. I would like to install it on a dedicated server I have that is running Multicraft. Fabric, paper/spigot, and forge Pre-1.16 I can get to work. But anything newer I can't figure out.The dedicated server is using Linux and I am a Linux noob. Can anyone tell me the secrets.
8 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by cyroinferno#0
MrRazamataz
MrRazamataz2y ago
One solution would be installing the version of forge you want locally and uploading it to your server.
CyroInferno
CyroInfernoOP2y ago
I have tried that but the server is unable to start with the .sh file
MrRazamataz
MrRazamataz2y ago
Does it give an error you can share here?
CyroInferno
CyroInfernoOP2y ago
18.07 19:04:03 [Server] INFO Error: Invalid or corrupt jarfile /run.sh
infered
infered2y ago
Typically you wouldnt start a forge server on multicraft with a shell script, multicraft directly calls the jar with specific arguments the panel knows of What I've done and has been the most reliable is make a custom.jar.conf in /home/minecraft/multicraft/jar (I made different ones for each Java version) and then you just make sure your Forge jar is named custom.jar in the directory, after having installed the server on your local machine and just dragging all the files into the server
name = Custom Jar (Java 8) (Place custom.jar in base directory)
source =
configSource =
category = Mods

[start]
command = "/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -Djline.terminal=jline.UnsupportedTerminal {PARAMS} -jar "{SERVER_DIR}/custom.jar" nogui

[parse_unknown]
start = (^Unknown console command|Run the command /fml confirm)

[params]
fix_log4j_1.17-1.18 = -Dlog4j2.formatMsgNoLookups=true
fix_log4j_1.12-1.16.5 = -Dlog4j.configurationFile=log4j2_112-116.xml
fix_log4j_1.7-1.11.2 = -Dlog4j.configurationFile=log4j2_17-111.xml
name = Custom Jar (Java 8) (Place custom.jar in base directory)
source =
configSource =
category = Mods

[start]
command = "/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -Djline.terminal=jline.UnsupportedTerminal {PARAMS} -jar "{SERVER_DIR}/custom.jar" nogui

[parse_unknown]
start = (^Unknown console command|Run the command /fml confirm)

[params]
fix_log4j_1.17-1.18 = -Dlog4j2.formatMsgNoLookups=true
fix_log4j_1.12-1.16.5 = -Dlog4j.configurationFile=log4j2_112-116.xml
fix_log4j_1.7-1.11.2 = -Dlog4j.configurationFile=log4j2_17-111.xml
This is my java8-custom.jar.conf file with openjdk, depending on your distro the openjdk bins may be in other locations I have one for java8, java16 and java17
Discount Milk
Discount Milk2y ago
Modern forge doesn't use a jar file.
CyroInferno
CyroInfernoOP2y ago
This is where my lack of knowledge comes in when it comes to Java and Linux. How do I do this?

Did you find this page helpful?