Solved NoClassDefFoundError

Discussion in 'Plugin Development' started by spurkle, Apr 8, 2016.

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

    spurkle

    Hi.

    I have a fairly big plugin, and sometimes some classes are not loading. That happens randomly, or at least i haven't found any connections between them. One time it works, other time it doesn't.

    [​IMG]

    Any help would be appreciated.

    BTW, The server is running Spigot, while i have compiled with bukkit.jar, could this be an issue?
     
    Last edited: Apr 8, 2016
  2. Offline

    Lordloss

    Do you have updated / changed the Plugin while the server was online? I had this issue in a Situation like that. For me it happened to the classes with schedulers inside.
     
  3. Offline

    Zombie_Striker

    Please post all your classes and the packages in your plugin. Also, post line 109 for Teleport Manager.

    It will only be a problem if the versions for each server is different (I.e The bukkit version you compiled it with should be the same as the one you're server is running on)
     
  4. Offline

    spurkle

    Theres no need for all classes/packages, since the problem is with classes not loading, not the function itself.

    I think i have compiled it with a wrong version, or like the user above posted, i have done that too sometimes.
     
  5. Offline

    567legodude

    Yeah it is probably something to do with a difference in versions. Unless for some reason the class is just gone.

    I think this is the most relatable thing I have ever seen here.
     
  6. Offline

    0verFull

  7. Offline

    mythbusterma

    But that's exactly why we need to see them. It may be that you're doing some dynamic loading or something. And no, this has nothing to do with Java version, it would say so. We know what we're talking about, and frankly there's no reason not to post your code.

    It is, however, possible that you haven't updated all the classes when you export your jarfile. Alternatively, you're exporting the jar to that directory while the server is still up and you're using a shitty operating system (read: Windows) that doesn't like that.
     
Thread Status:
Not open for further replies.

Share This Page