NoClassDefFoundError
FaMa91 opened this issue · comments
I cannot manage to resolve the NoClassDefFoundError:
The method:
private void search() {
new AnvilGUI.Builder()
.onClose(stateSnapshot -> {
stateSnapshot.getPlayer().sendMessage("You closed the inventory.");
})
.onClick((slot, stateSnapshot) -> { // Either use sync or async variant, not both
if(slot != AnvilGUI.Slot.OUTPUT) {
return Collections.emptyList();
}
if(stateSnapshot.getText().equalsIgnoreCase("you")) {
stateSnapshot.getPlayer().sendMessage("You have magical powers!");
return List.of(AnvilGUI.ResponseAction.close());
} else {
return List.of(AnvilGUI.ResponseAction.replaceInputText("Try again"));
}
})
.preventClose()
.text("What is the meaning of life?")
.title("Enter your answer.")
.plugin(Feudal.getPlugin());
}
The pom: https://pastebin.com/vVPdJaSX
Which .jar
did you put into the plugin folder? It seems like you did not deploy the *-shaded.jar
file.
The pom.xml
looks fine at the first glance.
@WesJD Why this issue has been closed?
Because this is not a problem with AnvilGUI.
How can you tell it? Do you know what is wrong and choose to not tell me or you are just assuming It?
Anyway, yes it is, I managed to solve it myself. Your readme is wrong.
You as a developer should help people with this kind of problems too, I know is frustrating but is part of the job.