Non-plugin dependencies

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

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

    chromestone

    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

    _Filip

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

    Sabersamus


    What I do, is compile with ant,

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

    xTrollxDudex

  5. Offline

    zack6849

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

Share This Page