Importing a JAR file to a data development project by using a wizard

You can use a wizard to import a JAR file that is on the local file system to a data development project.
Prerequisite: You must create a data development project that is associated with a DB2® for z/OS® Version 9 server.

JAR file information that is stored in a data development project includes the location of the JAR file on the local file system, the SQL JAR name, and the Java™ path if applicable. When this information is stored in the project, you can compile and package Java stored procedures that reference classes in the JAR file. You can also use this stored information to more easily deploy the JAR file to a database server, either during the import or at a later time, without having to specify the information again.

In addition to the method of using a wizard to import a JAR file, necessary JAR files and their accompanying information are also automatically copied to a data development project when you drag and drop or copy and paste a Java stored procedure from the Database Explorer to a data development project.

To import a JAR file to a data development project by using a wizard:

  1. Switch to the Data perspective.
  2. Right-click the JAR folder and select Import. A wizard opens.
  3. Complete the steps of the wizard. In the wizard, you specify name, location, and path information. You can also select to deploy the JAR file to a database.
  4. Click Finish.
The JAR file is stored in the data development project in the JAR folder. You can edit the JAR file information if necessary before you deploy the JAR file.

Feedback