Jump to content

[1.15.2 - Recommended] Dependency not loading when using 'embed'


Recommended Posts

Posted (edited)

Hello,

 

I've carefully followed the ForgeGradle dependency documentation as I need to embed a few dependencies in my project.

 

Most of these dependencies are loading and can be used as expected, but one is throwing java.lang.NoClassDefFoundError when I try to make use of the library.

 

I can see that the library has been embedded in the jar file, but the mod crashes when I try to access the library.

 

I'd really appreciate any help working around this.

 

Here is my build.gradle:

 

  Reveal hidden contents

 

Here is the fairly typical crash log:

 

  Reveal hidden contents

 

Edited by jskidd3
Additional clarification
Posted (edited)

This post (and your reply specifically) seems very relevant as fmDNS uses org.apache libs.

 

The hack isn't working with 1.15.2 but I'm keen to figure out a way of doing this using transformation anyway.

 

 

 

Edited by jskidd3

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.