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

Failed to start Forge after 1.20.3 in IDEA #191

Open
qyl27 opened this issue Jan 5, 2024 · 6 comments
Open

Failed to start Forge after 1.20.3 in IDEA #191

qyl27 opened this issue Jan 5, 2024 · 6 comments

Comments

@qyl27
Copy link

qyl27 commented Jan 5, 2024

Repo: SinoCraftProject/SinoSeries

Reproduce:

  1. Clone repo with commit bbf99ac.
  2. Run Minecraft Forge Server (:sinoseries-meta:sinoseries-meta-forge).

Log:

[Architectury Transformer] Architectury Runtime 5.2.80
[Architectury Transformer] Read classpath in 3.653 s
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:48)
	at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:18)
	at juuxel.unionrelauncher.UnionRelauncher.main(UnionRelauncher.java:92)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:219)
Caused by: java.lang.module.FindException: Module org.lwjgl.tinyfd not found, required by org.lwjgl.tinyfd.natives
	at java.base/java.lang.module.Resolver.findFail(Resolver.java:893)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:192)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:141)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:492)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:298)
	at [email protected]/net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:77)
	... 9 more
@qyl27
Copy link
Author

qyl27 commented Jan 7, 2024

After my test, it seemed to be a problem that occurred on forge 1.20.3+.

@qyl27 qyl27 changed the title Failed to start forge server in dev environment. Failed to start Forge in IDEA Jan 14, 2024
@qyl27
Copy link
Author

qyl27 commented Jan 14, 2024

A similar issue in another project with forge 1.20.3-49.0.2.
Both client and server.
qyl27/NBTEdit

@qyl27 qyl27 changed the title Failed to start Forge in IDEA Failed to start Forge after 1.20.3 in IDEA Jan 17, 2024
@MarbleGateKeeper
Copy link

Same issue. 1.20.4 forge.

@Yeregorix
Copy link

I had a similar issue with Forge 1.20.4 but for server only. Somehow arch-loom is adding LWGJL natives but not LWGJL itself.
I managed to fix the issue by adding the following code to my buildscript.

afterEvaluate {
    tasks.runServer {
        classpath = classpath.filter { !it.toString().contains("\\org.lwjgl\\") }
    }
}

I'm completely removing LWJGL because it is not needed on the server anyway. This is not a clean fix but it works for me.

@Fuzss
Copy link

Fuzss commented May 1, 2024

This now also affects the Forge runClient task. Using Minecraft Forge 50.0.0 for Minecraft 1.20.6 on ArchLoom 1.6-SNAPSHOT. The workaround posted above does not work for me. Fabric and NeoForge don't have any issue.
Here is the exception:

Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at net.minecraftforge.bootstrap.Bootstrap.bootstrapMain(Bootstrap.java:133)
	at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:53)
	at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:19)
	at juuxel.unionrelauncher.UnionRelauncher.main(UnionRelauncher.java:92)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:219)
Caused by: java.lang.module.FindException: Module jopt.simple not found, required by cpw.mods.modlauncher
	at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:192)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:141)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:491)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:297)
	at [email protected]/net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:166)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 7 more

Also runServer is still broken:

Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at net.minecraftforge.bootstrap.Bootstrap.bootstrapMain(Bootstrap.java:133)
	at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:53)
	at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:19)
	at juuxel.unionrelauncher.UnionRelauncher.main(UnionRelauncher.java:92)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:219)
Caused by: java.lang.module.FindException: Module org.lwjgl.openal not found, required by org.lwjgl.openal.natives
	at java.base/java.lang.module.Resolver.findFail(Resolver.java:892)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:192)
	at java.base/java.lang.module.Resolver.resolve(Resolver.java:141)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:491)
	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:297)
	at [email protected]/net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:166)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 7 more

@rarepeepo
Copy link

Has this ever been addressed? Having the same problem with an umodified template from https://generate.architectury.dev/

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

No branches or pull requests

5 participants