les deux autres jars dont dépend l'appli donc je me suis créé un fichier
"MANIFEST_ADDED.MF" avec la ligne ci-dessus, puis je fais :
jar umf lib/tableview.jar META-INF/MANIFEST_ADDED.MF
et ça me répond :
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:383)
at java.util.jar.Manifest.read(Manifest.java:167)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.update(Main.java:487)
at sun.tools.jar.Main.run(Main.java:167)
at sun.tools.jar.Main.main(Main.java:904)
à chaque fois que je lance cette commande je me retrouve avec un fichier
tmp29007.tmp vide dans le folder META-INF/...
kesako ???
Pourtant, cela correspond bien à ce qui est dit à la page :
Download extensions are specified in the Class-Path header field in the
manifest file of an applet, application, or another extension. A
Class-Path header might look like this, for example:
Class-Path: servlet.jar infobus.jar acme/beans.jar
With this header, the classes in the files servlet.jar, infobus.jar,
and acme/beans.jar will serve as extensions for purposes of the applet
or application. The URLs in the Class-Path header are given relative to
the URL of the JAR file of the applet or application.
Est-ce un pb de version ? Car j'ai :
Manifest-Version: 1.0
Si oui je la change de la même manière en "l'écrasant" l'ancienne valeur
ou faut-il que je modifie mon build.xml de ant ?
--
yt