Testing plugin , I got exception : java.lang.ClassNotFoundException: org.mcteam.Vampire.vampire

Discussion in 'Plugin Development' started by TrainYourBrain, May 7, 2011.

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

    TrainYourBrain

    Hey guys,

    I've got the source code from Vampire plugin (thanks to the creator), and I wanted to change some things in the code, all work perferctly except I can't get the plugin working on the server because I got this error :

    java.lang.ClassNotFoundException: org.mcteam.Vampire.vampire

    I know (about 90% sure) this come from my Plugin.yml (here is what it contains):

    name: vampire
    main: org.mcteam.vampire.vampire
    version: 1

    And on the following screenshot you'll be able to see the projet tree

    [​IMG]
    (click to make it larger)

    So please, can you tell me what do I wrong ?

    Thanks and have a good day ;-)
     
  2. Offline

    Acrobot

    in your plugin.yml change main to:
    yourFileName.mainClass, like:
    org.mcteam.vampire.Vampire.Vampire
     
  3. Offline

    TrainYourBrain

    Thanks dude.

    But It still doesn't work, tell me if I"m wrong :

    The file name is Vampire.java located in the package org.mcteam.vampire and the mainClass is Vampire :

    Code:
    public class Vampire extends JavaPlugin {...}
    So yes the plugin.yml should be :

    name: vampire
    main: org.mcteam.vampire.Vampire.Vampire
    version: 1

    Any idea(s) ? Thanks

    Edit :

    Got it working with : org.mcteam.vampire.Vampire

    Thanks ;)
     
  4. Offline

    Deathly

    Yeah.. case sensitive ;)
     
Thread Status:
Not open for further replies.

Share This Page