How to include custom library in plugin's jar-file?

Discussion in 'Plugin Development' started by fromgate, Jul 21, 2012.

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

    fromgate

    Hello!

    I've created a library, that I'm planning to use with all my plugins. Now this library included as simple java-file to all of my projects. But I'm going to compile it as separated jar-file and include to plugin as library.

    All works fine (I included my jar-file as external library) until I'm trying to export plugin's jar. My library is not icluded in jar.

    How I can include my library in jar? Is it possible?
     
  2. mayby you can the libaryty as a seperate plugin, that your plugin depends for its loading
    like nolagg depends on BKCommonLib
    I think about this idea because the libreary is designt for bukkit projects, so its easy to do
     
  3. Offline

    fromgate

    No, I think it's not good for me. Library is not big and forcing server admins to install additional plugin. I just need to make library updating more easy for me: now when I updating library I need to do changes in all my plugins.
     
  4. Offline

    evilmidget38

    If you're using eclipse: http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java)

    I'm not really familiar with Netbeans(I don't use it) but I found there might be a plugin to easily do this : http://plugins.netbeans.org/plugin/11451/addtolibrary
     
  5. Offline

    fromgate

    I'm using Eclipse and I read this page before. I tried all the proposed methods, but there's no method to "integrated" library into a jar file :(
     
Thread Status:
Not open for further replies.

Share This Page