Posted August 25, 20214 yr so Im kinda new to making servers and i wanted to make a modded server for my friends but every time I try this pops up in my command prompt C:\Users\32dda\OneDrive\Desktop\server>java -Xmx2048M -Xms20480M -jar forge.jar nogui Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size C:\Users\32dda\OneDrive\Desktop\server>pause Press any key to continue . . . as a result of this, the files wont load and I can't make a modded server
August 25, 20214 yr 1) You shouldn't set the start size to higher then the max size 2) Are you SURE you wanna set your starting RAM to 20GB? I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
August 25, 20214 yr Author 4 hours ago, LexManos said: 1) You shouldn't set the start size to higher then the max size 2) Are you SURE you wanna set your starting RAM to 20GB? so I changed it to a smaller size and now this is the error code C:\Users\32dda\OneDrive\Desktop\server>java -Xmx1024M -Xms1024M -jar forge.jar nogui 2021-08-25 11:23:42,683 main WARN Advanced terminal features are not available in this environment [11:23:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.2, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui] [11:23:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 16.0.2 by Oracle Corporation Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x4de5031f) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x4de5031f at cpw.mods.modlauncher.SecureJarHandler.lambda$static$1(SecureJarHandler.java:41) at cpw.mods.modlauncher.api.LamdbaExceptionUtils.uncheck(LamdbaExceptionUtils.java:95) at cpw.mods.modlauncher.SecureJarHandler.<clinit>(SecureJarHandler.java:41) at cpw.mods.modlauncher.Launcher.lambda$new$6(Launcher.java:55) at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:52) at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:47) at cpw.mods.modlauncher.Environment.computePropertyIfAbsent(Environment.java:62) at cpw.mods.modlauncher.Launcher.<init>(Launcher.java:55) at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)
August 25, 20214 yr Author 8 hours ago, diesieben07 said: I would recommend not putting a server into OneDrive. This can lead to world corruption. USe 64 Bit Java. how would I change that to set it to java?
August 25, 20214 yr Author 4 minutes ago, diesieben07 said: You are now trying to use Java 16. 1.16.5 and earlier do not support Java 16. ok so Im guessing i have to play on 1.17 but im trying to make a server for 1.16.5, is that not possible or does the server type not have to match Minecraft's world and mod type?
August 25, 20214 yr Author 3 hours ago, diesieben07 said: Use Java 8 or 11 for running 1.16.5, simple. I got the server up and running thanks for the help
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.