ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Executable Jar using GUI?
Date Fri, 15 Feb 2008 06:22:02 GMT
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:stevel@apache.org] 
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message