Solved I Can't Seem to Find an Issue

Discussion in 'Plugin Development' started by thegarfish, Jun 9, 2013.

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

    thegarfish

    Hello, I have coding a fairly simple plugin for a few days now.. I can't seem to find the issue with it. It is a events plugin but on server startup it crashes.

    Here is the crash log...
    Code:
    2013-06-09 11:52:47 [SEVERE] Could not load 'plugins\Events.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.thegarfish.events
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217)
        at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106)
        at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382)
        at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.ClassNotFoundException: me.thegarfish.events
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        ... 9 more
    Let me know if you need any other info about the plugin.
     
  2. Offline

    georgeamare

    thegarfish
    Could you share you plugin.yml and your main class name :) ?
     
  3. Offline

    thegarfish

    Plugin.yml-
    Code:
    name: Events
    version: 1.0
    description: Events... and stuff.
    load: STARTUP
    author: thegarfish
    website: www.mc5star.com
    main: me.thegarfish.events
    database: false
    commands:
      openevent:
      events:
      joinevent:
      closeevent:
    permissions:
      events.*:
      events.open:
      events.join:
      events.list:
      events.close:
    Main Class Name-
    Code:
    com.thegarfish.events
     
  4. Offline

    Rocoty

    Well...Isn't it obvious? Change the package to me.thegarfish
    Or change the main value in the plugin.yml to com.thegarfish.events
     
  5. Offline

    Trevor1134

    If using ME instead of COM, if what Rocoty says doesn't help, I would reccomend doing
    As that has been my issue in the past for loading plugins.
     
  6. Offline

    Rocoty

    Trevor1134 Really? That's interesting. You are most likely doing something wrong if you have to type the class name twice. As if the events class were located in the package me.thegarfish.events
     
  7. Offline

    Trevor1134

    Rocoty I watched a tutorial in the past, and that was how it was to be done. I also tried with the class name once, and it didn't show up when I reloaded.
     
  8. Offline

    Rocoty

    Trevor1134 Could you PM me an example? (screenshots or text or project files) This really shouldn't even be posible
     
  9. Offline

    ZeusAllMighty11 Retired Staff

    The issue is that your 'main' path is not valid
     
  10. Offline

    thegarfish

    Oh, I didn't even notice that. Thank you guys!
     
Thread Status:
Not open for further replies.

Share This Page