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:
- Create an SQLJ file in the project using the New SQLJ File wizard.
- Use the Add SQLJ Support wizard.
To add SQLJ support to a project with the Add SQLJ Support wizard:
- Open the Add SQLJ Support wizard:
The wizard displays a list of all the eligible projects that do not have SQLJ support.
- Click File > New > Other, or click the New toolbar button.
- In the New window, expand the Data category, and then expand the SQLJ category.
- Click Add SQLJ Support to Projects, and then click Next.
- Select the projects to which you want to add SQLJ support.
- Specify the JAR file to resolve SQLJ references.
- To specify advanced properties for all the projects that you selected:
- Select the Set advanced project properties check box, and then click Next.
- On the Advanced Project Properties page, specify additional JAR files, translation options, and whether to use long package names for the projects.
- 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