IBM Support

After exporting to a .jar file from Rational Application Developer, the SQLJ class files are missing

Troubleshooting


Problem

This technote explains how to resolve missing classes in an exported .jar file when using IBM Rational Application Developer for WebSphere Software.

Symptom

When running an SQLJ application, the NoClassDefFoundError due to missing classes in a.jar file.

By default, Rational Application Developer is setup with debug enabled for SQLJ application.


In debug mode, class files generated will reference SQLJ files instead of Java files.

As a result, the standard Eclipse export will not find the link between .class and .java and therefore not package them into the .jar file.

Cause

This issue has been identified as a product defect and has been logged under APAR JR19794.

Environment


Resolving The Problem

The following steps resolve the issue:

1. Disable debug on the SQLJ preferences from Window > Preferences > Data > SQL Applications and uncheck Enable debugging from SQLJ file

2. Rebuild the project so that all classes get regenerated from Project > Clean > Clean All

3. Export the project again either by a right-click on the project from Export > Java > Jar file or by a right-click on a .jardesc file and select Create Jar from the context menu.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Database Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.9;7.5;7.5.1;7.5.2;7.5.3;7.5.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Database Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
23 June 2018

UID

swg21403419