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

Can't run "runClient" by gradle on macos #956

Closed
hhoao opened this issue Oct 24, 2024 · 1 comment
Closed

Can't run "runClient" by gradle on macos #956

hhoao opened this issue Oct 24, 2024 · 1 comment
Labels
forum Not an issue with ForgeGradle, see the forums

Comments

@hhoao
Copy link

hhoao commented Oct 24, 2024

net.minecraftforge.gradle version [6.0.16,6.2)
Java version: 17
os: Apple M3
arch: arm64
forge version: 39.1.2
minecraft version: 1.18.1

clash:
[16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/LiquidBlock
[16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/StairBlock
[16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/level/block/FlowerPotBlock
[16:10:06] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/item/ItemStack
[16:10:07] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/item/BucketItem
[16:10:07] [pool-3-thread-1/DEBUG] [ne.mi.co.tr.CoreModBaseTransformer/COREMOD]: Transforming net/minecraft/world/effect/MobEffectInstance
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "Render thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:106)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)
Caused by: 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:569)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:38)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
... 7 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mojang.blaze3d.systems.RenderSystem
at TRANSFORMER/[email protected]/net.minecraft.SystemReport.setDetail(SystemReport.java:62)
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.fillSystemReport(Minecraft.java:2269)
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.fillReport(Minecraft.java:2262)
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:178)
... 13 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.dylib [in thread "Render thread"]
at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:162)
at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:62)
at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.Library.(Library.java:50)
at MC-BOOTSTRAP/org.lwjgl/org.lwjgl.system.MemoryUtil.(MemoryUtil.java:97)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.platform.MemoryTracker.(MemoryTracker.java:11)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.BufferBuilder.(BufferBuilder.java:48)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:20)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:24)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.vertex.Tesselator.(Tesselator.java:12)
at TRANSFORMER/[email protected]/com.mojang.blaze3d.systems.RenderSystem.(RenderSystem.java:45)
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:167)
... 13 more

I guess I need "org.lwjgl:lwjgl:3.2.3:natives-macos"、"org.lwjgl:lwjgl-opengl:3.2.3:natives-macos"、"org.lwjgl:lwjgl-glfw:3.2.3:natives-macos" dependencies, buy I don't know how to dependency them.

@PaintNinja PaintNinja added the forum Not an issue with ForgeGradle, see the forums label Oct 24, 2024
Copy link

👋 We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for the Forge Support Forums or Forge Discord. Please create a new topic on the support forum with this issue or ask in the #tech-support channel in the Discord server, and the conversation can continue there.

@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
forum Not an issue with ForgeGradle, see the forums
Projects
None yet
Development

No branches or pull requests

2 participants