Posted July 31, 20214 yr Hi, I have a mod which contains a depdency that shaded Java Native Access. The mod works if I `runClient` in IntelliJ, but when I try to shade the mod, It throws an error saying that an incompatible JNA version was found. I believe that the JNA included within the dependency dumps `jnidispatch` in the same directory as the JNA in Forge, but my mod doesn't read its own `jnidispatch`. I tried relocating `com.sun.jna`, as well as set properties like `jna.tmpdir` and `jna.library.path`, which did make my JNA dump `jnidispatch` in the provided directory, but the version was still incorrect. Maybe my mod dumped Forge's `jnidispatch` instead? If someone knows how to solve this, please kindly let me know, I can also provide further details if needed. Thank you very much!
February 22, 20223 yr Author the JNA depedency of my mod clashes with the JNA of Forge. I removed my JNA package from the compiled mod.jar and it works
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.