mirraj2 / EZDB

Java MySQL API
MIT License
12 stars 9 forks source link

java.lang.NoSuchMethodError #6

Closed byBackfish closed 3 years ago

byBackfish commented 4 years ago

Hey, so when i use this like a normal Java Application, its working fine, but if i put it into my Spigot (Minecraft) Plugins, its saying

java.lang.NoSuchMethodError: com.google.common.base.CharMatcher.whitespace()Lcom/google/common/base/CharMatcher; non maven

Any Idea why?

byBackfish commented 4 years ago

Or a better Question, how can i get that api as a Jar? Do I have to self compile it?

evanpenner commented 4 years ago

It shows that error because bukkit/spigot pre 1.10 uses an older version of Google guava. It'll only work on newer versions of bukkit. The only thing I would say you could do is build the server jar with a newer version or use shadow jar to rename all the packages of the guava to something else

byBackfish commented 4 years ago

mmh okay. Thanks

byBackfish commented 4 years ago

Sorry, if im asking for too much, but do you know any Documentation for that? Like i dont really know what you mean with shadow jar? Thanks

evanpenner commented 4 years ago

Google shadow jar package relocation gradle

On Sep 12, 2020, at 2:07 PM, byBackfish notifications@github.com wrote:

Sorry, if im asking for too much, but do you know any Documentation for that? Like i dont really know what you mean with shadow jar? Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

byBackfish commented 4 years ago

Okay. I got it now, but now my last question is, where do I need to put the maven shade in? In the Api or in the Spigot Plugin? Like I made ezdb into a api for the spigot Plugin so I don't need to copy the classes in every time