Hi Thorsten, the main class is not the problem, there are several in the archive and pick them up when executing (e.g. List or Load...).
I can taylor a manifest file, but I don't like to do so. I use maven and eclipse. In maven I define the dependencies. Whith eclipse all works fine. There are a web-app (presently using struts, but I migrate to JBoss, hibernate and JSF) and there are some client application. Up to now I constructed a directory structure with the classes and jars, had a bat-file (windows!) and moved all that stuff to an other computer. It is dull! Maven should do just that for me, and it would work, if it woudnt mix all the Java stuff from the JRE into this archive (rt.jar, sunrasign.jar, jsse.jar, jce.jar, ...)! This is in the JRE and I don't need it in my jar. Thre is some further stuff, I don't need - the struts- and j2ee environment, but I think, I can exclude them. The main problem is the JSSE.jar (how exclude?) from the JRE, not the dependencies. This contains COM.-packages (who has invented them?) which, i suspect, creates a directory, which hosts the com.-packages too. If I proceed, developing my project, I add any further dependency, and maven-assembly-plugin should do the build for my batch-application. Any Idea? I think it is a bug, to mix COM- and com- directories, they should be apart. But perhaps this is a problem of java.util.jar Many Thanks Holger > well, I get a jar-archive, but this doesn't execute! Then you don't have a main class reference in the jar's manifest...? See http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.htm l > I think, I can't > include other archives in a jar file for execution as they ar not > accessible > by the class loader. I hve to make them "flat" or include them as separte > jars in the classpath. I have done this before, but I wanted to avoid just > this. It should be enough if your jar file has a "Class-Path" section in its manifest where all used references (i.e. other used/necessary jars) are listed. HTH Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ****************************** Disclaimer: Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte Informationen enthalten. Wenn Sie nicht der beabsichtigte Empfänger sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender telefonisch oder per E-Mail und loeschen Sie diese E-Mail aus Ihrem System. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir haften nicht für die Unversehrtheit von E-Mails, nachdem sie unseren Einflussbereich verlassen haben. Disclaimer: This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately by call or e-mail and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We are not responsible for the integrity of e-mails after they have left our sphere of control. ****************************** sds business services GmbH Stinnes-Platz 1 45472 Muelheim an der Ruhr Amtsgericht Duisburg, HRB 18564 Geschaeftsfuehrer: Dr. Bodo Roiko (Vorsitzender) Albrecht Held Bernhard Wildt --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
