Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more than one module named cpw.mods.securejarhandler #2262

Open
SaltSouls opened this issue Mar 11, 2024 · 1 comment
Open

more than one module named cpw.mods.securejarhandler #2262

SaltSouls opened this issue Mar 11, 2024 · 1 comment

Comments

@SaltSouls
Copy link

SaltSouls commented Mar 11, 2024

Minecraft Development for IntelliJ plugin version

2023.3-1.7.3

IntelliJ version

2023.3.4

Operating System

Arch Linux

Target platform

Minecraft Forge

Description of the bug

After setting up the template project and running the genIntellijRuns task, when trying to runClient I get this error:

Exception in thread "main" java.lang.module.ResolutionException: Module org.antlr.antlr4.runtime reads more than one module named cpw.mods.securejarhandler
	at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901)
	at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:722)
	at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
	at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:298)
	at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:129)

I have tried rerunning the gen task, remaking the project, switching the forge version, and removing the .gradle file where all the libraries are stored, but nothing has fixed this issue. This would seem to be a recent issue as older mods I started using this plugin don't run into the same issue. I should also note that the module that reads more than one of the cpw.mods.securejarhandler modules seems to change pretty regularly. No idea what is causing this or how I'm even supposed to go about fixing/debugging it.

@SaltSouls SaltSouls changed the title more than one module named cpw.mods.securejarhandler more than one module named cpw.mods.securejarhandler Mar 11, 2024
@Sxtkl123
Copy link

Try it with forge_version=47.2.0 in your build.gradle or just try to create a new project with forge version 47.2.0 may work. I met the same issue with you and solve it like what I said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants