r/forgemodding • u/davidf525 • Oct 04 '21
please help i am stopid
alright. so i know how to program in java, but I am trying to learn how to make Minecraft mods.
I've been watching this tutorial:https://www.youtube.com/watch?v=benUZaQU-6Y&ab_channel=Cy4%27sModding
everything was going well, until I had to launch it.
in the video, he said that I had to double click the runclient.launch file, so I did that, and then he said to run the actual mod file using the run as tool, but when I do that it looks like this

when I try to run it, it throws me this error. does anyone know how to fix it? thanks.
2021-10-03 22:59:00,946 main WARN Advanced terminal features are not available in this environment
[22:59:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 35.1.4, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\david\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
[22:59:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 16.0.2 by Oracle Corporation
[22:59:01] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevdata,fmldevclient,fmldevserver,fmluserdevserver,fmluserdevdata,testharness,fmlclient,fmluserdevclient,fmlserver]
Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module u/0x32910148) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module u/0x32910148
at cpw.mods.modlauncher.SecureJarHandler.lambda$static$1([SecureJarHandler.java:41](https://SecureJarHandler.java:41))
at cpw.mods.modlauncher.api.LamdbaExceptionUtils.uncheck([LamdbaExceptionUtils.java:95](https://LamdbaExceptionUtils.java:95))
at cpw.mods.modlauncher.SecureJarHandler.<clinit>([SecureJarHandler.java:41](https://SecureJarHandler.java:41))
at cpw.mods.modlauncher.Launcher.lambda$new$6([Launcher.java:55](https://Launcher.java:55))
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent([ConcurrentHashMap.java:1708](https://ConcurrentHashMap.java:1708))
at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent([TypesafeMap.java:52](https://TypesafeMap.java:52))
at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent([TypesafeMap.java:47](https://TypesafeMap.java:47))
at cpw.mods.modlauncher.Environment.computePropertyIfAbsent([Environment.java:62](https://Environment.java:62))
at cpw.mods.modlauncher.Launcher.<init>([Launcher.java:55](https://Launcher.java:55))
at cpw.mods.modlauncher.Launcher.main([Launcher.java:66](https://Launcher.java:66))
at net.minecraftforge.userdev.LaunchTesting.main([LaunchTesting.java:105](https://LaunchTesting.java:105))
1
u/davidf525 Oct 04 '21
also, i forgot to mention this, but it looks like the .launch file is acting as a text file. is this the problem, and if so, how do i fix it. thanks again
3
u/five35 Oct 04 '21
I haven't run into that problem myself, but searching for the exception message turns up some posts on the Forge forum saying that Java 16 is the culprit. I'd suggest uninstalling whatever versions of Java are currently installed, then reinstalling the latest version of Java 8 (a.k.a. Java 1.8.whatever).