Syconn Posted January 2, 2022 Posted January 2, 2022 Hello, I am having problems with my forge setup everytime I do run client I keep getting the same crash message and cant find a fix. Cannot invoke "joptsimple.OptionSet.valueOf(joptsimple.OptionSpec)" because "this.optionSet" is null I have tried reinstalling java, using cmd and intellij to runClient but nothing works and cant find a solution any help would be great thx. 2022-01-02 12:22:49,441 main WARN Advanced terminal features are not available in this environment [12:22:49] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.18, --assetsDir, C:\Users\Aidan\.gradle\caches\forge_gradle\assets, --gameDir, ., --fml.forgeVersion, 39.0.9, --fml.mcVersion, 1.18.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20211210.034407] [12:22:49] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 9.0.17+9.0.17+main.3e5b8360 starting: java version 17.0.1 by Eclipse Adoptium [12:22:49] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness] [12:22:49] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] [12:22:49] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,object_holder_definalize,runtime_enum_extender,capability_token_subclass,accesstransformer,runtimedistcleaner] Exception in thread "main" java.lang.NullPointerException: Cannot invoke "joptsimple.OptionSet.valueOf(joptsimple.OptionSpec)" because "this.optionSet" is null at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ArgumentHandler.lambda$setArgs$0(ArgumentHandler.java:46) at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:52) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:47) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Environment.computePropertyIfAbsent(Environment.java:67) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ArgumentHandler.setArgs(ArgumentHandler.java:46) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:85) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) Quote
PaleImitations Posted January 3, 2022 Posted January 3, 2022 I'm also experiencing this same issue. And it's happening to all of my 1.18.1 projects including ones that as recently as a couple days ago were working just fine. Quote
PaleImitations Posted January 3, 2022 Posted January 3, 2022 Ok. Following up, I found the solution on the forge project discord. You need to use the command "gradlew --refresh-dependencies" Quote
Syconn Posted January 3, 2022 Author Posted January 3, 2022 Thank You So Much u saved hours of head banging. Also never realized there was a discord Quote
themadcrafter Posted January 3, 2022 Posted January 3, 2022 (edited) Having the same issue the refresh dependencies did not fix the problem though EDIT: Got it Edited January 3, 2022 by themadcrafter Quote
Recommended Posts
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.