Adding SQLJ support to Java projects

Any projects that support Java development are eligible for SQLJ support, including J2EE projects, Web projects, EJB projects, and Java projects.

You can add SQLJ support to a project by using one of the following methods:

To add SQLJ support to a project with the Add SQLJ Support wizard:

  1. Open the Add SQLJ Support wizard:

    1. Click File > New > Other, or click the New toolbar button.

    2. In the New window, expand the Data category, and then expand the SQLJ category.

    3. Click Add SQLJ Support to Projects, and then click Next.
    The wizard displays a list of all the eligible projects that do not have SQLJ support.

  2. Select the projects to which you want to add SQLJ support.

  3. Specify the JAR file to resolve SQLJ references.

  4. To specify advanced properties for all the projects that you selected:

    1. Select the Set advanced project properties check box, and then click Next.

    2. On the Advanced Project Properties page, specify additional JAR files, translation options, and whether to use long package names for the projects.

  5. Click Finish to add SQLJ support to the selected projects.

Adding SQLJ support to a project creates a folder in the project for SQLJ customization scripts (the default name is SQLJAntScripts).

 

Parent topic

Developing SQLJ applications

 

Related concepts

Java projects
Introduction to SQLJ

 

Related tasks

Creating an SQLJ file
Removing SQLJ support from Java projects
Creating a new Java project

Related reference
SQLJ statement syntax
Add SQLJ Support page
Advanced Project Properties page