java.lang.LinkageError

Discussion in 'Plugin Development' started by Exloki, Jul 13, 2013.

Thread Status:
Not open for further replies.
  1. Hello!

    Let me first explain what I'm trying to do. I have an API plugin that I want to use to make my own "APlayer" object, managed by the "APlayerManager" object. Below I've linked gists of simplified versions (removed all the getter/checker methods that aren't relevant to my question).

    APlayer.java https://gist.github.com/thoosequa/847a43ea50657771cdbf
    APlayerManager.java https://gist.github.com/thoosequa/c854bfb9b6b21f278cef

    I get the APlayerManager by calling "API.playerManager" (which gets a static object of APlayerManager for the API).

    Now - This all works fine with no errors, but when I reload the API plugin, I get this error:
    Caused by: java.lang.LinkageError: com/github/thoosequa/api/aplayer/APlayer
    whenever anything tries to call the "API.playerManager.getAPlayer(name)" and get an APlayer object for the player.

    Any help related to this issue, or any tips/pointers on how I could improve what I'm trying to achieve are greatly welcomed :)
     
  2. Offline

    chasechocolate

  3. Thanks for the link; I think I understand the why this error has arisen now, but I still can't think of a way to fix it. xD
     
Thread Status:
Not open for further replies.

Share This Page