Problem with Ant-generated Jar

Hello,

I’m trying to make my plugin to work when compiled with Ant, but without success :cry:

Here is the situation : when I export my plugin to a Jar file from Eclipse, it works well in Servoy. Now, I made an Ant script do do the same :

<project name="Myplugin" default="makejar" basedir=".">

<path id="build.classpath">
  <pathelement location="/Applications/Servoy/lib/js.jar"/>
  <pathelement location="/Applications/Servoy/lib/j2db.jar"/>
</path>

<target name="build">
  <javac srcdir="src" destdir="build">
    <classpath refid="build.classpath" />
  </javac>
</target>


<target name="makejar" depends="build">
  <jar jarfile="Myplugin.jar">
    <fileset dir="build" />
  </jar>

  <delete dir="build" />
</target>

</project>

But my plugin doesn’t work. I think something is wrong about the path of the libs… can someone help me ?

Ok forget it I found a solution.