Using library form other jar file

Discussion in 'Plugin Development' started by regzand, Jun 4, 2013.

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

    regzand

    Hi.
    I want to make a plugin that will be use THIS library. But i don't know how to make it that this library will be place inside my plugin jar file...
    Can you explain me how i should do this?

    //sorry for my language, i'am still learning...
     
  2. You will probably have to use Maven Shading...Or just tell people to download the lib, put it in their plugins folder and then add it as a dependecy to your plugin yaml.
     
    regzand likes this.
  3. Offline

    gomeow

    I usually put the jar in a lib/ folder, then use maven to reference it
     
    regzand likes this.
  4. Offline

    regzand

    I never used maven, can you explain me how to do this or give me a link to some good tutorial?
     
  5. I would say take a look at apache's website but that explenation sucks...Just google for Bukkit use maven and also install m2e if you're on Eclipse. (I had an error when compiling that said the compiler wasn't found, I fixed it by adding this system variable: JAVA_HOME with the location of the bin folder of jdk as value)
     
Thread Status:
Not open for further replies.

Share This Page