An executable jar is still a jar file with the "Main-Class" attribute in the manifest [1,2,3]. If you rely on other libraries, you can a) include the content of the other jars in your jar [4,5] b) set the "Classpath" attribute in your manifest and have the other jars relative to yours [3,6] c) include the other jars in your jar and use a special ClassLoader [7,8].
Jan [1] http://ant.apache.org/manual/CoreTasks/manifest.html [2] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Main%20Attributes [3] http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html [4] http://ant.apache.org/manual/CoreTasks/jar.html [5] http://ant.apache.org/manual/CoreTypes/zipfileset.html [6] http://ant.apache.org/manual/CoreTasks/manifestclasspath.html [7] http://one-jar.sourceforge.net/ [8] http://launch4j.sourceforge.net/ > -----Ursprüngliche Nachricht----- > Von: Steve Loughran [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 14. Februar 2008 17:35 > An: Ant Users List > Betreff: Re: Executable Jar using GUI? > > Sameer Borwankar wrote: > > Hi All, > > > > Can anyone please guide me regarding creating an executable > jar file from existing build.xml? I tried to use Antigen gui. > Can someone suggest another gui to create an executable jar file? > > If its a JAR file for installers: izpack > > -- > Steve Loughran http://www.1060.org/blogxter/publish/5 > Author: Ant in Action http://antbook.org/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]