Development Assistance Main not found

Discussion in 'Plugin Help/Development/Requests' started by packeretteswan, Mar 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    packeretteswan

    I can't point the main class

    Server Log:
    Code:
    [06:17:41 ERROR]: Could not load 'plugins/ShadowEra.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.BrandonSteed.ShadowEra.ShadowEra'
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:369) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:152) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
    Caused by: java.lang.ClassNotFoundException: me.BrandonSteed.ShadowEra.Listeners.ShadowEra
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_75]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_75]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_75]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_75]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_75]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_75]
        at java.lang.Class.forName0(Native Method) ~[?:1.7.0_75]
        at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_75]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1607]
        ... 7 more
    plugin.yml
    Code:
    name: PacksNetworkMod
    main: me.BrandonSteed.ShadowEra.Listeners.ShadowEra
    authors: [GeneralOfGames, VjGamingUK2000, DaPancake, zD12, Prozza, Madgeek1450, PacksGamingHD]
    version: 1.0
    commands:
      smite:
        description: Smite a bad player.
        usage: /<command> <player>
        permission: shadoweracore.command.smite
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      adminchat:
        description: Use the adminchat!
        usage: /<command> [message]
        aliases: [o, ac]
        permission: shadoweracore.command.apply
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      apply:
        description: Explain how to obtain helper.
        usage: /<command> [args.]
        aliases: [a]
        permission: shadoweracore.command.apply
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      kpvp:
        description: Obtain a kit for PvP.
        usage: /<command>
        permission: shadoweracore.command.kpvp
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      forcecommand:
        description: Force a user to preform a command.
        usage: /<command> <player> <command> [args.]
        aliases: [fc, forcecmd]
        permission: shadoweracore.command.forcecommand
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      cc:
        description: Clear chat for all users, or a single user.
        usage: /<command> <player>
        aliases: [clearchat, cchat]
        permission: shadoweracore.command.cc
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      rage:
        description: Rage in FIRE!  Burn them in the fiery death!
        usage: /<command>
        permission: shadoweracore.command.rage
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      administratemode:
        description: Administrate within darkness.
        usage: /<command> [on | off]
        aliases: [admin, adminmode, v, vanish]
        permission: shadoweracore.command.administratemode
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      announce:
        description: Announce a message to the whole server.
        usage: /<command> [message]
        aliases: [an]
        permission: shadoweracore.command.announce
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      slime:
        description: Check if the owner is online
        usage: /<command>
        aliases: [owner, owners]
      promote:
        description: Promote a user!
        usage: /<command> <player> [helper | moderator | admin | coowner | developer]
        permission: shadoweracore.command.promote
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      nv:
        description: Living the "Light" Life.
        usage: /<command> [on | off]
        aliases: [nightlife, nightvision]
        permission: shadoweracore.command.nv
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      fakeleave:
        description: Display a fake leave message.
        usage: /<command>
        permission: shadoweracore.command.fakeleave
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      consolesay:
        description: Scream a message from console.    
        usage: /<command> [message]
        aliases: [server]
        permission: shadoweracore.command.consolesay
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      machat:
        description: Force a user say something!  
        usage: /<command> <player> [message]
        permission: shadoweracore.command.machat
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      vj:
        description: Slam the VJHammer over someone.
        usage: /<command> <player>
        permission: shadoweracore.command.vj
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
    permissions:
      shadoweracore.*:
        description: Gives access to everything on ShadowEraCore.
        children:
          shadoweracore.event.thor: true
          shadoweracore.command.*: true
        description: Gives access to all ShadowEraCore commands.
        children:
          shadoweracore.command.*: true
    
    name: PacksNetworkMod
    main: me.BrandonSteed.ShadowEra.Listeners.ShadowEra
    authors: [GeneralOfGames, VjGamingUK2000, DaPancake, zD12, Prozza, Madgeek1450, PacksGamingHD]
    version: 1.0
    commands:
      smite:
        description: Smite a bad player.
        usage: /<command> <player>
        permission: shadoweracore.command.smite
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      adminchat:
        description: Use the adminchat!
        usage: /<command> [message]
        aliases: [o, ac]
        permission: shadoweracore.command.apply
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      apply:
        description: Explain how to obtain helper.
        usage: /<command> [args.]
        aliases: [a]
        permission: shadoweracore.command.apply
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      kpvp:
        description: Obtain a kit for PvP.
        usage: /<command>
        permission: shadoweracore.command.kpvp
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      forcecommand:
        description: Force a user to preform a command.
        usage: /<command> <player> <command> [args.]
        aliases: [fc, forcecmd]
        permission: shadoweracore.command.forcecommand
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      cc:
        description: Clear chat for all users, or a single user.
        usage: /<command> <player>
        aliases: [clearchat, cchat]
        permission: shadoweracore.command.cc
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      rage:
        description: Rage in FIRE!  Burn them in the fiery death!
        usage: /<command>
        permission: shadoweracore.command.rage
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      administratemode:
        description: Administrate within darkness.
        usage: /<command> [on | off]
        aliases: [admin, adminmode, v, vanish]
        permission: shadoweracore.command.administratemode
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      announce:
        description: Announce a message to the whole server.
        usage: /<command> [message]
        aliases: [an]
        permission: shadoweracore.command.announce
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      slime:
        description: Check if the owner is online
        usage: /<command>
        aliases: [owner, owners]
      promote:
        description: Promote a user!
        usage: /<command> <player> [helper | moderator | admin | coowner | developer]
        permission: shadoweracore.command.promote
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      nv:
        description: Living the "Light" Life.
        usage: /<command> [on | off]
        aliases: [nightlife, nightvision]
        permission: shadoweracore.command.nv
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      fakeleave:
        description: Display a fake leave message.
        usage: /<command>
        permission: shadoweracore.command.fakeleave
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      consolesay:
        description: Scream a message from console.    
        usage: /<command> [message]
        aliases: [server]
        permission: shadoweracore.command.consolesay
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      machat:
        description: Force a user say something!  
        usage: /<command> <player> [message]
        permission: shadoweracore.command.machat
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
      vj:
        description: Slam the VJHammer over someone.
        usage: /<command> <player>
        permission: shadoweracore.command.vj
        permission-message: §9[ShadowEraCore] §cYou don't have enough permissions.
    permissions:
      shadoweracore.*:
        description: Gives access to everything on ShadowEraCore.
        children:
          shadoweracore.event.thor: true
          shadoweracore.command.*: true
        description: Gives access to all ShadowEraCore commands.
        children:
          shadoweracore.command.*: true
    
     
  2. @packeretteswan Posting your main class would be useful for finding the package name. However, Assuming the main class is inside the package 'me.BrandonSteed.ShadowEra.Listeners' and is called 'ShadowEra', all should go well. Make sure it's not in some other package or something. Check your package spelling in the plugin.yml
     
  3. Offline

    packeretteswan

    Actually I moved it there for testing. I've moved it to multiple packages multiple names but no success
     
  4. Offline

    mythbusterma

    @packeretteswan

    Package names should always be lower case, so change your packages to be lower case, and the statement in your plugin.yml file, as it is case sensitive. Many of these issues are caused by casing.
     
  5. Offline

    packeretteswan

    Will do.

    It didn't work.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  6. Offline

    mythbusterma

    @packeretteswan

    Post your stack trace. Also, check that you're actually exporting your classes from whatever IDE you're using.
     
  7. Offline

    xTrollxDudex

    You should post your entire main class just to see.
     
  8. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives.
     
Thread Status:
Not open for further replies.

Share This Page