The second Add Files to WAR dialog box enables you to add individual class
files, .jar files, or whole directories to your archive.
Click Browse to select the root directory of the files or directories
that you want to add. For example, if your class files are part of a
package called adder and your directory structure looks like:
examples
|
adder
|
AdderServlet.class
then choose examples as your root directory.
Select the directory or file that you want to add from the root
directory structure. If you chose examples as your root
directory and added AdderServlet.class to the .war
file, adder/AdderServlet.class or adder\AdderServlet.class
should appear in the lower text field.