Packing libraries to .jar?

Discussion in 'Plugin Development' started by Baba43, Apr 21, 2013.

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

    Baba43

    Hi,

    for my current project I wanted to use BoneCP for managing my database connections.

    The problem is that bukkit never finds the necessary classes.

    So I tried different things I found on the internet, but nothing has worked so far.

    1. Packing them into a special folder
      [​IMG][​IMG]
    2. Packing them into the same directory
    3. Using them just as references
    4. Using them as user-defined libraries
    Any ideas?

    Yes then they won't be packed to the jar at all.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  2. Offline

    Tzeentchful

    Baba43
    Look into building you project with maven. Maven has a plugin called Maven Shade.
    It basically handles compressing required libs into your jar for you.
     
Thread Status:
Not open for further replies.

Share This Page