I have a project in Java I am running that uses an external JAR file.
In Eclipse I added the JAR file to the class build path and everything working fine.
But my question is: how can I add it to my project after I created the executable JAR (myPtog.jar)
and I am running “ant” in cmd but the external jar file is not found?
This is my build.xml:
<project name="" default="dist" basedir=".">
<description>
Ant
</description>
<!-- Set global properties for this build. -->
<property name="src" location="src"/>
<property name="build" location="target"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<jar jarfile="TPCServer.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="Main1"/>
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
Try using JSmooth.