I have wrote a java applet which is pretty simple. It connects to a oracle database upon clicking a button. It works fine, it connects when I run it using eclipse. However, when I use ant to create the jar file I dont know how to include the ojdbc6.jar as a classpath. Can someone please help me? Ive been trying for a week now. Here is my code. My external 3rd party Jar files that I need are in C:\JarFiles
<property name="build.home" value="${project.home}/build" />
<path id="files-classpath">
<fileset dir="c:/JarFiles" >
<include name="*.jar"/>
</fileset>
</path>
<!-- convert classpath to a flat list/string for use in manifest task -->
<pathconvert property="files-classpath" pathsep=" ">
<path refid="files-classpath" />
<flattenmapper />
</pathconvert>
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${manifest.built.by}"/>
<attribute name="Created-By" value="${manifest.created.by}"/>
<attribute name="Main-Class" value="${manifest.main.class}"/>
<attribute name="Implementation-Version" value="${version.number}-b${build.number}"/>
<attribute name="Class-Path" value="${files-classpath}" />
</manifest>
<target name="compile">
<javac srcdir="." />
<target name="compileProject" description="compiles project Classes">
<echo>compiling the project classes</echo>
<javac srcdir="src" destdir=".">
<classpath>
<path refid="files-classpath" />
</classpath>
</javac>
</target>
<target name="jar" depends="compileProject" >
<jar jarfile="myJar.jar"
basedir="."
index="true"
manifest="MANIFEST.MF" />
</target>