Deployment wizard
The Deployment Wizard bundles together a set of files and packages that constitute an image of an application or applet that can be run. The Deployment Wizard enables you to easily distribute JavaBeans to other users.
To open the Deployment Wizard:
- Open the project you wish to archive.
- Compile your project to create the class files.
- Choose Wizards|Deployment Wizard.
See also:
Deploying Java programs
Wizard Options:
Select Files to Deploy
The Deployment Wizard places all selected files for deployment (regardless of the file extension) in an archive file. The wizard does not filter out what files to include in the archive. The wizard doesn’t check to make sure that the archive contains a complete set of files needed to deploy a specific application or applet.
The Deployment Wizard will not deploy the JDK. The JDK is part of the Java VM and, thus, never should need to be deployed. The Deployment Wizard does not include any class files from the JDK.
By default, all files and packages in a project are selected to be deployed. The listbox supports multiple selection.
The Deployment Wizard is project-based. All files that are needed as part of a deployment must be referenced in the project either indirectly (such as classes in .java files) or directly in the project. All files that are needed in the deployment that are not .java or .class files must be explicitly referenced in the project. For example, you need to explicitly add any required .gif, .html, and .txt files to the project.
Deploy Options
Deploy Dependencies
The Deploy Dependencies checkbox controls whether any .class files that the deployment files are dependent on are included in the archive. You can further refine what dependency files are included in the archive by setting the Exclude JBCL or Exclude JGL checkboxes.
- Exclude
- JBCL - When this checkbox is set, the Borland JBCL class files that the deployment files are dependent upon will not be included in the archive. You should select Exclude JBCL when you know that the target system for deployment already has JBCL installed.
- JGL - When this checkbox is set, the Java Generic Library (JGL) class files that the deployment files are dependent upon will not be included in the archive. You should select Exclude JGL when you know that the target system for deployment already has JGL installed.
Deploy as
The Deployment Wizard supports the zip and JAR archive formats. Within those two formats, you can also choose between having a compressed or an uncompressed archive generated. If you choose to deploy using a JAR file, if you have not already provided a manifest file as a file to be deployed, the Deployment Wizard will generate a manifest file for the .jar file. If you want to have a specific manifest file for the deployment, then that file must be added to the project and selected as a file to be deployed; otherwise, the Deployment Wizard will attempt to create a new manifest file when you click the Finish button.
Zip |
Writes an uncompressed zip file using the file name specified in the Archive Output Path. |
Zip Compressed |
Writes a compressed zip file using the file name specified in the Archive Output Path. |
JAR |
Writes an uncompressed JAR file using the file name specified in the Archive Output Path. If you do not have a manifest file specified in the deployment list, a manifest will be created and installed in the JAR.
|
JAR Compressed |
Writes a compressed JAR file using the file name specified in the Archive Output Path. If you do not have a manifest file specified in the deployment list, a manifest will be created and installed in the JAR.
|
Archive Output Path
The fully qualified path and file name for the archive to be generated by the Deployment Wizard. You can use the Browse button to browse to a different directory location.
The extension of the file in the Archive Output Path and the Deploy As option must be in sync. The extension for the archive must be either .jar or .zip.
Browse
This button enables you to locate and select the Archive Output Path using a Filer dialog, rather than typing in the text box.
Finish
When you click the Finish button, the wizard attempts to create the archive file based on the settings in the dialog. If successful, the archive will be created and the Deployment Wizard will exit. If not successful, an error message will be displayed and the Deployment Wizard will re-appear.