Add Contents to JAR

The Add Contents to JAR dialog box enables you to add individual files or whole directories to your EJB .jar file. You must add your enterprise bean class, remote interface and home interface to the JAR file with this dialog box.
  1. Click Browse to select the root directory of the files and 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
            |
            AdderEJB.class
            AdderHome.class
            Adder.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 in the previous step, all of the files and directories contained in examples are displayed in the root directory structure.
  3. Click Add to add the selected directory or file to the .jar file. If you chose examples as your root directory and added Adder.class to the EJB .jar file, adder/Adder.class or adder\Adder.class should appear in the lower text field.
  4. Click OK when you are finished.
To remove a file or directory from the .jar 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.