First I started a thread because I have asked this question before and it was never solved, second Caused by: java.lang.ClassNotFoundException: com.CJendantix.plugin.Plugin the problem is that my plugin's main class was not found in the Plugin.yml file I think.Could not load 'plugins\plugin.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.CJendantix.plugin.Plugin' at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:69) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:145) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:394) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:301) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:400) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:233) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1010) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at java.lang.Thread.run(Thread.java:831) [?:?] Caused by: java.lang.ClassNotFoundException: com.CJendantix.plugin.Plugin at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:142) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:466) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:67) ~[spigot.jar:3231-Spigot-3c1fc60-e167f28]
#Plugin Main class not found
1 messages · Page 1 of 1 (latest)
dont dm it
use a sc website
thx
send a ss of the plugin jar and send the yml file contents
I already have the ss ready
send it
send a ss of the built jar
the contents of the built jar
???
what do you want me to take a ss of
!!!
@quasi pebble
also can you stay active on the thread so I don't have to ping you?
yeah i cant help you, you're using vscode
yeah
someone else will
yeah
that was 7z
if you want to see the contents of my plugin, you should have said that
@quasi pebble
i didnt
hi
Question ^
screenshot
@cloud leaf Show a Picture of your Plugin.Yml and your Projects Main class path
Not sure in Eclipse but I’m pretty sure you need to have a “resources” folder and in that you put your plugin.yml and config.yml etc
https://prnt.sc/1rn4fub Main Class
https://prnt.sc/1rn4kf9 Plugin.yml
@quasi pebble
first
second
@quasi pebble
@quasi pebble @quasi pebble
@quasi pebble @quasi pebble
@quasi pebble
@quasi pebble
@quasi pebble
@quasi pebble
@quasi pebble
I FIXED IT ON MY OWN, I REPEAT, I FIXED IT ON MY OWN
It was a STUPID PROBLEM AND EVERYONE IS GOING TO FACEPALM.
I didn't save my plugin.yml