Errors: Need help please.

Discussion in 'Bukkit Help' started by TheViewerMarcus, Apr 4, 2012.

Thread Status:
Not open for further replies.
  1. This is my first attempt at creating a new plugin for me and friends to use for fun.
    I know that this may not be the place to ask for help, or it could be. I made an account here to ask for the help.

    I worked with mods before and have little expericance.

    Show Spoiler
    22:00:19 [SEVERE] Could not load 'plugins\test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: com.
    hotmail.marcusmontgomery.test
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:150)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ClassNotFoundException: com.hotmail.marcusmontgomery.test
    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.findClass(PluginClassLoader.
    java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
    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.j
    ava:139)
    ... 8 more


    This is the server error.

    I will link a pastebin with the code/yml.

    http://pastebin.com/NAb6fxNB Code
    http://pastebin.com/cjTVvd6r YML

    Thank you if you decide to help me.
     
  2. Offline

    TripleXPenguin

    Capitalize the first letter in the name of the class ALWAYS. And try this as you plugin.yml:

    The name of your package should math the main: in your plugin.yml:
    package me.marcus.test;

    Code:
    name: test
    main: me.marcus.test.Test
    version: 1.0
    description: >
                My plugin!
    commands:
      weaselfan:
        description: Lightning.
    Remember, capitalize the name of the class and you should also with the .jar
    And are you using Eclipse?
     
  3. Yes, I'm using Eclipse
     
  4. Offline

    TripleXPenguin

    I just changed it, I realized you also had a different package and main in the yml
     
  5. Ah! Forgot I changed the package! Thanks. Going to test it now :)

    EDIT: Works! Thanks man.
     
  6. Offline

    TripleXPenguin

    :) No problem! If you need any other help just ask! :p
     
    TheViewerMarcus likes this.
Thread Status:
Not open for further replies.

Share This Page