Add Class Files

The second Add Files to WAR dialog box enables you to add individual class files, .jar files, or whole directories to your archive.
  1. 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.
  2. 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.
  3. Click Finish.
To remove a file or directory from the .war file, select its entry from the field in the 'Files to be Added' section of the dialog box and click Remove.

Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.