i have found this answer to the Question in the java tutorial http://download.oracle.com/javaee/6/tutorial/doc/gizks.html
but i have still the Qeustion how cann i add an app to the archive (like html2pdf converter)?
i have found that addWebResource will do the work.
like: archive.addWebResource(file, "resources/");
but i still have a problem with it when i output the structre of the archive i don't see the file i've add though i see resources!!!
The second parameter to addWebResource is the name of the file in the Archive. Your naming your file "resources".
You probably want to do something like: addWebResource(file, "resources/" + file.getName())