Universal Installer   «Prev  Next»

Lesson 6 Software Packager
Objective Use software Packager to handle distributed software installation.

Oracle Software Packager

The Software Packager is a new tool available to the Oracle developer and DBA and is Java based and object oriented. The Software Packager is intended to simplify the task of distributing software to many sites. It can be used to distribute either Oracle software components or your own application software, or both.

Using the Software Packager | Example

Here is an example of how the Software Packager can be used to package and deploy an application system to a set of distributed sites. Let us say that the application consists of these three components:
  1. A script that must run on the local database to add a new table
  2. Five application program files that must be copied into a specified directory
  3. Seven graphic files that must be copied into a specified directory

Packaging Deployment Process
Click the link above to continue this process.
As you can see, the wizards in the Software Packager take most of the guesswork out of the process. You can deploy a package using a CD-ROM, the Internet, or a network file system. The package is installed by starting up the Universal Installer and installing the package as a new product. Click the link below to read about the Software Packager Manager.

Where to find the Software Packager

The Software Packager is available as a free download from the Oracle Technet Web site.
Before installing the Software Packager, you must install the Java Developer's Kit, or JDK. The JDK is also free and can be downloaded from Sun's Web site. After you install JDK, you should have no trouble installing the Software Packager. Once it is installed, you will find the software listed in the same area where you find the Universal Installer. A useful and informative tutorial is included with the Software Packager's documentation. See the Resource page of this course for links to the Oracle Technet and Sun Web sites.

JAR Files, WAR Files, and EAR Files

To deploy EJBs and other components in the J2EE application, you must package them. In keeping with J2EE modular programming methodology, all parts of a module are packaged together. This includes JSP
  1. files,
  2. images, and
  3. utility classes
to make that component a self-contained package. JAR files are zipped archives of files ending in the .jar extension. In fact, you can pack and unpack a JAR file with any zip utility. Java provides a utility for creating archives that has the advantage of creating a Manifest automatically.
By creating an archive of the required class file and other supporting files you package everything into one file. This allows you to deploy applications in one file. The JAR file maintains the file's subdirectories there by maintaining Java package integrity. Standard JavaBeans and Enterprise JavaBeans, mentioned earlier, are packaged into JAR files.
WAR files are Web Application Archives. WAR files are JAR files that end in .war and are used to package and deploy web components into web containers. They can contain HTML documents, servlets, JSPs, or even applet class files. WAR archives also contain an XML file called a deployment descriptor that describes the components. This file is called web.xml.

EAR File

An EAR file is an Enterprise Archive and is used to package modules of an J2EE application. An EAR file is a JAR file that ends in .ear and can contain JAR and WAR files in addition to any other file required by the module. EAR archives also contain a file describing their contents called an application descriptor, typically, application.xml.
As with all zip files, Java archives maintain subdirectories and thus package scope. To create these files manually, you use the Java packager tool called jar.

Packaging Distributing Software - Exercise

Click the Exercise link below to put your knowledge to work.
Packaging Distributing Software - Exercise
The next lesson is the module conclusion.