Gray icon in file tree next to a jar dependency
So I added required dependencies and it worked fine, but when I tried using it in a different enviroment (Paperspigot server) it gave this error.
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/qrakn/honcho/command/adapter/CommandTypeAdapter
[...]
Caused by: java.lang.NoClassDefFoundError: com/qrakn/honcho/command/adapter/CommandTypeAdapter
[...]
Caused by: java.lang.ClassNotFoundException: com.qrakn.honcho.command.adapter.CommandTypeAdapter
Then I noticed that the dependency has a gray folder icon https://imgur.com/x6fDzLb.png
but some of the folders inside don't have this problem. Keep in mind that the actual error is caused by a file that is inside of this grayed out folder.
The plugin compiles normally and IntelliJ IDEA doesn't complain
This is how I set up these dependencies...
https://imgur.com/NCkZv7P.png
https://imgur.com/jOAsAJC.png
https://imgur.com/M4v72kl.png
Please sign in to leave a comment.
Please direct this question to the minecraft plug-in for IntelliJ IDEA. The plug-in may have the special handling for the libraries and the configuration that is specific to this plug-in.
Serge Baranov
Actually in this one I haven't used it since it was already made before and I just tried to "import" the project.
AFAIK this IntelliJ IDEA plugin is only a "boilerplate" for Minecraft plugins/mods.
I only put the source and libraries and I added libraries as dependencies so far.
Zip and upload the project that doesn't work at https://uploads.services.jetbrains.com/ without Minecraft plug-in so that the problem can be reproduced.