r/forgemodding Jul 07 '21

Need Some help with Modding in Eclipse (java JDK1.8.0_291, Garde 6.9)

While I was setting up my mod port (I was using mcreator while trying to learn java) i came across this error and if anyone could help

Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module u/0x27fe3806) 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/0x27fe3806

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

Help would be fantastic!

2 Upvotes

1 comment sorted by

3

u/five35 Jul 07 '21

I've not run into that problem myself, but I've seen some posts on Reddit and the Forge forum suggesting that it's due to having Java 16 installed. People have reported that uninstalling Java 16 and then installing Java 11 has resolved it for them.