Outsource Libs

Discussion in 'Spigot Plugin Development' started by FiXed, May 27, 2016.

  1. So I'm trying to use a plugin which uses libraries that isn't a plugin so it really can't be loaded with the main Java thing so how would I load them as a valid dependency? I have a libs folder in my IDE with all the needed libs in there but I just need to know how to use them. If anyone can help that would be great.
  2. Not sure if I understand your issue. Are you having trouble at runtime or compile time?

    The libraries need to be packaged into the plugin's jar to be availabe at runtime.
  3. Both, when I run the plugin it won't accept the external jar inside the plugin.
    Shading with Eclipse is nearly impossible and IntelliJ sucks
    Doesn't really help with what I need

    I'm trying to add BoneCP into my plugin and it's failing:
  4. Woah, r00d.

    All jokes aside though, you should include the resources inside the jar, not the jar file itself. This should be an option about every decent IDE has (but as I am not an Eclipse user, I can't find it for you, sorry :p). Probably hidden somewhere in the build config.
    • Agree Agree x 1
  5. I did include the resources inside the jar.
  6. JamesJ


    You included the jar -- not the extracted jar

    Show us what the plugin looks like in jd-gui / WinRAR/ZIP
  7. http://i.imgur.com/3t8ZkDw.gifv
  8. JamesJ