I'm trying to launch Minecraft in forge 1.18.2 and every time I try to play, it always shoots and error saying that the issue may be caused by an invalid Java Runtime configuration. Check any custom configuration settings.
I'm not super sure if I ever touched those settings, however I'm not very good at any of this.
Here are the logs that the launcher output to me:
15:28:44.295
Preparing to launch minecraft client for 1.18.2-forge-40.0.32
15:28:54.587
Minecraft client 1.18.2-forge-40.0.32 is ready to start.
15:28:54.587
Starting!
15:28:55.448
Version does not support log configuration, will assume one plaintext entry per line
15:28:57.056
2022-03-30 15:28:57,045 main WARN Advanced terminal features are not available in this environment
15:28:57.178
[15:28:57] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, GodCrxz, --version, 1.18.2-forge-40.0.32, --gameDir, C:\Users\leona\AppData\Roaming\.minecraft, --assetsDir, C:\Users\leona\AppData\Roaming\.minecraft\assets, --assetIndex, 1.18, --uuid, 53dd409ca66a4a7e858b569ce8ff78a7, --accessToken, ????????, --clientId, Y2RjN2E2YjUtZjQwMC00OGM5LWE3MjEtNmIwNTNkZDAyOWQx, --xuid, 2535444210111317, --userType, msa, --versionType, release, --width, 1600, --height, 900, --launchTarget, forgeclient, --fml.forgeVersion, 40.0.32, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220228.144236]
15:28:57.181
[15:28:57] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.1 by Microsoft
15:28:57.288
Exception in thread "main" java.lang.module.ResolutionException: Module OptiFine._1._17._1.HD.U.G9 contains package net.minecraftforge.fml.loading.progress, module fmlloader exports package net.minecraftforge.fml.loading.progress to OptiFine._1._17._1.HD.U.G9
15:28:57.288
at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901)
15:28:57.288
at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:807)
15:28:57.288
at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736)
15:28:57.288
at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
15:28:57.288
at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
15:28:57.288
at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
15:28:57.289
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:70)
15:28:57.289
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:82)
15:28:57.289
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:128)
15:28:57.294
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:86)
15:28:57.295
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
15:28:57.295
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
15:28:57.295
at MC-BOOTSTRAP/
[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
15:28:57.295
at
[email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)
15:28:57.346
Process crashed with exit code 1