#Plugin Main class not found

1 messages · Page 1 of 1 (latest)

cloud leaf
#

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]

cloud leaf
#

thx

quasi pebble
#

send a ss of the plugin jar and send the yml file contents

cloud leaf
#

I already have the ss ready

quasi pebble
#

send it

cloud leaf
#

Screenshot ^

#

@quasi pebble

quasi pebble
#

send a ss of the built jar

cloud leaf
#

?

#

wdym

quasi pebble
#

the contents of the built jar

cloud leaf
#

so I build it, then extract the contents

#

?

#

and send a ss

#

@quasi pebble

quasi pebble
#

full thing

#

where your main class is

cloud leaf
#

?

#

huh\

#

whaa

#

@quasi pebble

quasi pebble
#

bin

#

the jar

cloud leaf
#

???

#

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?

quasi pebble
#

i am active

cloud leaf
#

ooooooooohhhhhhhhhh

#

but this is what I see when I open the archive

quasi pebble
#

yeah i cant help you, you're using vscode

cloud leaf
#

yeah

quasi pebble
#

someone else will

cloud leaf
#

wait

#

no I'm not

#

lol

quasi pebble
#

well you're using eclipse

#

idk how that works

cloud leaf
#

yeah

#

that was 7z

#

if you want to see the contents of my plugin, you should have said that

#

@quasi pebble

quasi pebble
#

i didnt

cloud leaf
#

then what did you want, explain it in one message

#

I can get it\

#

@quasi pebble

cloud leaf
#

hi

quasi pebble
#

@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

cloud leaf
#

@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