GalaxyAndrew
Пользователь
- Сообщения
- 5
Разрешается выкладывание кода, файлов конфигураций, логов и т.д. только под BB-код CODE
Не могу понять в чем проблема плагина хотя все написано правильно
ответ сервера
[10:23:21] [Server thread/ERROR]: Could not load 'plugins\First.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `kanet228.tut.First'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:88) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[JavaPluginLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[SimplePluginManager.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [SimplePluginManager.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:359) [CraftServer.class:git-CatServer-1.12.2-fed56812]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:340) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:330) [nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:636) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_351]
Caused by: java.lang.ClassNotFoundException: Failed to remap class kanet228.tut.First
at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:231) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_351]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_351]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:86) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
... 8 more
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:185) ~[asm-debug-all-5.2.jar:5.2]
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:168) ~[asm-debug-all-5.2.jar:5.2]
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:439) ~[asm-debug-all-5.2.jar:5.2]
at net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:228) ~[JarRemapper.class:?]
at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:196) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_351]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_351]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:86) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
... 8 more
файл plugin.yml:
name: First
main: kanet228.tut.First
version: 0.0.1
description: A basic plugin for a basic server
сам класс kanet228.tut.First:
package kanet228.tut;
import org.bukkit.plugin.java.JavaPlugin;
public class First extends JavaPlugin {
@Override
public void onEnable() {
getLogger().info("Bebra plugin has een enabled");
}
@Override
public void onDisable() {
getLogger().info("Bebra plugin has een disable");
}
}
структура проекта:
Помогите в чем может быть проблема??
ответ сервера
[10:23:21] [Server thread/ERROR]: Could not load 'plugins\First.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `kanet228.tut.First'
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:88) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[JavaPluginLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[SimplePluginManager.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [SimplePluginManager.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:359) [CraftServer.class:git-CatServer-1.12.2-fed56812]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:340) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:330) [nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:636) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_351]
Caused by: java.lang.ClassNotFoundException: Failed to remap class kanet228.tut.First
at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:231) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_351]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_351]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:86) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
... 8 more
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:185) ~[asm-debug-all-5.2.jar:5.2]
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:168) ~[asm-debug-all-5.2.jar:5.2]
at org.objectweb.asm.ClassReader.<init>(ClassReader.java:439) ~[asm-debug-all-5.2.jar:5.2]
at net.md_5.specialsource.JarRemapper.remapClassFile(JarRemapper.java:228) ~[JarRemapper.class:?]
at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:196) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:129) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:108) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_351]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_351]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_351]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:86) ~[PluginClassLoader.class:git-CatServer-1.12.2-fed56812]
... 8 more
файл plugin.yml:
name: First
main: kanet228.tut.First
version: 0.0.1
description: A basic plugin for a basic server
сам класс kanet228.tut.First:
package kanet228.tut;
import org.bukkit.plugin.java.JavaPlugin;
public class First extends JavaPlugin {
@Override
public void onEnable() {
getLogger().info("Bebra plugin has een enabled");
}
@Override
public void onDisable() {
getLogger().info("Bebra plugin has een disable");
}
}
структура проекта:
Вам необходимо зарегистрироваться для просмотра изображений-вложений
Помогите в чем может быть проблема??