Jump to content

Shading dependencies with JNA


Arkyo

Recommended Posts

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!

Link to comment
Share on other sites

  • 6 months later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.