Can't get Plugin to load in RUN.bat

Discussion in 'Bukkit Help' started by kag359six, Jun 21, 2012.

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

    kag359six

    I'm trying to simply test a plugin that posts a message to console when plugin is enabled, however the console keeps giving me an error saying that it could not load "plugins/MinecraftPlugin.jar" in folder "plugins". Someone please help I've been trying to fix this for hours. There are no errors that Eclipse has detected. Here's the code:
    Code:
     
    package com.simple.kag359six;
     
    import java.util.logging.Logger;
    import org.bukkit.plugin.*;
     
    import org.bukkit.plugin.java.JavaPlugin;
     
    public class MinecraftPlugin extends JavaPlugin {
     
    Logger log = Logger.getLogger("Minecraft");
     
    public void onEnabled() {
     
      log.info("Plugin test enabled");
     
    }
     
    public void onDisabled() {
     
      log.info("the plugin is Disabled!!!");
     
    }
     
    }
    
    heres the yml file:


    name: MinecraftPlugin

    main: com.gmail.simple.MinecraftPlugin

    version: 1.2.5
     
  2. Offline

    CRAZYxMUNK3Y

    If this is a plugin you are coding yourself;
    1) You would get more help in Plugin Development
    2) Posting the Stack Trace can help
    3) Also learning to read a Stack Trace can also help
     
  3. Offline

    kag359six

    How do i copy the stack trace?
     
  4. Offline

    CRAZYxMUNK3Y

    Get it from the server.log file...


    Also, going by the code, the main in the plugin.yml should be;

    com.simple.kag359siz.MinecraftPlugin

    That is probably the error...
     
Thread Status:
Not open for further replies.

Share This Page