Index: applications/editors/josm/plugins/smed2/js57toosm/build.xml
===================================================================
--- applications/editors/josm/plugins/smed2/js57toosm/build.xml	(revision 30189)
+++ applications/editors/josm/plugins/smed2/js57toosm/build.xml	(revision 30190)
@@ -2,5 +2,5 @@
   <property name="src" location="src"/>
   <property name="build" location="build"/>
-  <property name="dist"  location="dist"/>
+  <property name="jarfile" location="./js57toosm.jar"/>
 
   <target name="init">
@@ -13,7 +13,8 @@
 
   <target name="dist" depends="compile" description="generate the distribution" >
-    <jar jarfile="./js57toosm.jar" basedir="${build}" >
+    <jar jarfile="${jarfile}" basedir="${build}" >
       <manifest>
-        <attribute name="Main-Class" value="Js57toosm"/>
+        <attribute name="Main-Class" value="js57toosm.Js57toosm"/>
+        <attribute name="Class-Path" value="$jarfile"/>
       </manifest>
     </jar>
@@ -22,6 +23,5 @@
   <target name="clean" description="clean up" >
     <delete dir="${build}"/>
-    <delete dir="${dist}"/>
-    <delete file="./js57toosm.jar"/>
+    <delete file="${jarfile}"/>
   </target>
 </project>
