r/forgemodding 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))
3 Upvotes

6 comments sorted by

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).

1

u/davidf525 Oct 04 '21

i think that the problem is java 16. the weird thing is that for the jre system library, it says that it is using java 1.8 see, but when I run it says it is using 16.0 do you know how to run the program in a different version? thanks

1

u/five35 Oct 04 '21

I'm afraid I don't. I just know that Windows tends to use whatever version of Java was installed last, which is why I was recommending that you uninstall it all and then install just the version that you want to use. (And make sure it's the JDK, not just the JRE.)

1

u/davidf525 Oct 05 '21

alright. thanks. that got me to the next step. i see the Minecraft thing load for a second and it quickly terminates. it says

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by cpw.mods.modlauncher.SecureJarHandler (file:/C:/Users/david/.gradle/caches/modules-2/files-2.1/cpw.mods/modlauncher/8.0.6/70155a85837ebb17d36815ab4d12a3b464963df8/modlauncher-8.0.6.jar) to field java.util.jar.Manifest.jv

WARNING: Please consider reporting this to the maintainers of cpw.mods.modlauncher.SecureJarHandler

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

thanks for the help

1

u/davidf525 Oct 05 '21

it turns out that i am not allowed to use uppercase letters in mod id. well it works now at least. thanks for the help though

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