Plugin not starting up.

Discussion in 'Plugin Development' started by Tzahi, Jul 8, 2012.

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


    Source is at the bottom, but I didn't want to waste your time reading the source when it could be another stupid mistake.

    Whenever I try to start up my plugin, it gives me an error:

    Error with TCPack: me.tzahi.TCPack (check console for more details)

    In the console, it says this:

    1:29:40 PM [SEVERE] org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.tzahi.TCPack
    1:29:40 PM [SEVERE]    at
    1:29:40 PM [SEVERE]    at org.bukkit.plugin.SimplePluginManager.loadPlugin(
    1:29:40 PM [SEVERE]    at im.mcft.pluginreloader.PluginReloader.loadPlugin(
    1:29:40 PM [SEVERE]    at im.mcft.pluginreloader.PluginReloader.onCommand(
    1:29:40 PM [SEVERE]    at org.bukkit.command.PluginCommand.execute(
    1:29:42 PM [SEVERE]    at org.bukkit.command.SimpleCommandMap.dispatch(
    1:29:42 PM [SEVERE]    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    1:29:42 PM [SEVERE]    at net.minecraft.server.NetServerHandler.handleCommand(
    1:29:42 PM [SEVERE]    at
    1:29:42 PM [SEVERE]    at net.minecraft.server.NetServerHandler.a(
    1:29:42 PM [SEVERE]    at net.minecraft.server.Packet3Chat.handle(
    1:29:42 PM [SEVERE]    at net.minecraft.server.NetworkManager.b(
    1:29:43 PM [SEVERE]    at net.minecraft.server.NetServerHandler.a(
    1:29:43 PM [SEVERE]    at net.minecraft.server.NetworkListenThread.a(
    1:29:43 PM [SEVERE]    at net.minecraft.server.MinecraftServer.w(
    1:29:43 PM [SEVERE]    at
    1:29:44 PM [SEVERE]    at
    1:29:44 PM [SEVERE] Caused by: java.lang.ClassNotFoundException: me.tzahi.TCPack
    1:29:44 PM [SEVERE]    at$ Source)
    1:29:44 PM [SEVERE]    at$ Source)
    1:29:44 PM [SEVERE]    at Method)
    1:29:45 PM [SEVERE]    at Source)
    1:29:45 PM [SEVERE]    at
    1:29:45 PM [SEVERE]    at
    1:29:45 PM [SEVERE]    at java.lang.ClassLoader.loadClass(Unknown Source)
    1:29:45 PM [SEVERE]    at java.lang.ClassLoader.loadClass(Unknown Source)
    1:29:45 PM [SEVERE]    at java.lang.Class.forName0(Native Method)
    1:29:45 PM [SEVERE]    at java.lang.Class.forName(Unknown Source)
    1:29:46 PM [SEVERE]    at
    1:29:46 PM [SEVERE]    ... 16 more
    Here is my setup with locations of libraries, classes, and the plugin.yml:


    And my plugin.yml:

    name: TCPack
    version: 0.1
    main: me.tzahi.TCPack
    author: Tzahi
            description: Sets your time.
            usage: /<command>
            description: Stuffy stuff.
            usage: /<command>
    And finally, my source code:

    Thank you =)
  2. Offline


  3. Offline


  4. Offline



    You did the main wrong you did me.tzahi.TCPack Which is the package but you need to put the main class aka the one called You do do it as
    me.tzahi.TCPack.TCPack But dont add .java on the end :D

    Hope it helped and also read the guides kumpel and Milkywayz Posted :D
  5. Offline


    It loads! thank you so much!!! now to troubleshoot the command errors, lol.
  6. Offline


    Also, this is just something that makes it easyer to see your code: packages, methods and variables should start with lowercase classes with uppercase
Thread Status:
Not open for further replies.

Share This Page