Non-plugin dependencies

Discussion in 'Plugin Development' started by chromestone, Feb 19, 2014.

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


    I used eclipse (obviously) and referenced java's mail jar (javax.mail) that i got off the internet, and I am using a lot of email stuff with the plugin. But I can't seem to get it to work, this is my first time doing this, how should I do it?

    By not working I mean runtime, I know the code works, just not in the different environment with bukkit.

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


    How is it obvious that you used eclipse?
    We don't offer support for anything other than bukkit.
  3. Offline


    What I do, is compile with ant,

    my compile code looks something like this:
        <target name="jar" depends="compile">
            <jar destfile="${}.jar" basedir="${build}">
                    <attribute name="Class-Path"
                        lib/quadtree.jar" />
    and then, in the plugins folder, add a new folder, 'lib' and put the javax.mail.jar in the lib folder
  4. Offline


  5. Offline


    You'd want to use maven to shade them in.
Thread Status:
Not open for further replies.

Share This Page