ygimenez / Pagination-Utils

A collection of methods to make message pagination with JDA easier.
GNU Lesser General Public License v2.1
27 stars 7 forks source link

java.lang.NoClassDefFoundError when trying to use Pagination-Utils #43

Closed tctfox closed 2 years ago

tctfox commented 2 years ago

Checklist

Make sure that you've checked all the items below.

Library info

What libraries versions are you using.

Describe the bug

I get a "Exception in thread "main" java.lang.NoClassDefFoundError" the moment I try to register a paginate Object. I coded quite a bit now with jda and everything else works. Buttons work, reactions work and the bot reacts to everything. But I cannot get Pagination-Utils to work. I did install it via maven and there no errors are showing. (Here my pom.xml -> https://pastebin.com/inddSqjf ) Here the full error -> https://pastebin.com/w3ZvsGm8

I tried to reinstall the maven dependency and I tried several pom.xml which I found in the disocrd but the error is always the same. Else the bot works just fine

ygimenez commented 2 years ago

Pagination Utils isn't compatible with JDA 5 yet (waiting for a stable release - See PR #39), you could use BlitzOffline's fork as a quick fix for now.

tctfox commented 2 years ago

Pagination Utils isn't compatible with JDA 5 yet (waiting for a stable release - See PR #39), you could use BlitzOffline's fork as a quick fix for now.

thanks for the quick reply The error is still here also with this fork. So it might be something else having to do with my project structure or something but thanks for the help

ygimenez commented 2 years ago

Maybe they changed yet another thing in latest releases, which broke the fork too. You could try recompiling the library and replacing broken imports, that should solve the issue for now.

That's the very reason why I'm waiting for a full release before updating the library, alpha releases are usually very volatile and change quite often.

st30611 commented 2 years ago

Pagination Utils isn't compatible with JDA 5 yet (waiting for a stable release - See PR #39), you could use BlitzOffline's fork as a quick fix for now.

thanks for the quick reply The error is still here also with this fork. So it might be something else having to do with my project structure or something but thanks for the help

Just FYI, If you use the build off jitpack that's older (e.g. closer to when BlitzOffline made their CL changes for 5.0 compatibility), it should work: https://jitpack.io/#BlitzOffline/Pagination-Utils/-df18cc80e1-1

I used a jar from jitpack and managed to get it to work with 5.0.0-alpha9.