Consultor Eletrônico



Kbase 18983: Apptivity - No Class Def Found Error with SDOSmartAdapter
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/12/1999
This document applies to: Apptivity Developer
Progress Open4GL

Version and Release Number: Apptivity 3.1 and above
Progress 9.0B

KnowledgeBase number: 18983

Summary:

When using the Apptivity SDOSmartAdapter to run a Progress Version 9.0B
SmartDataObject ( SDO ), you must use the version of o4glrt.jar that
ships with Apptivity, rather than the one that ships with Progress.

The version of o4glrt.jar that ships with Apptivity contains the
classes included in the Progress 9.0B o4glrt.jar, plus the extensions
SDOParameters and SDOAppObject. If the Progress version of this jar
file is used, trying to create a Data Source from the SDO Data
Connection in Developer or running a project containing such a Data
Connection will throw the following exception:

java.lang.NoClassDefFoundError: com/progress/open4gl/SDOParameters

Step by Step Details:

To use the correct version of o4glrt.jar, in the IDE,
1. Select Tools->Options
2. Select the Classpath tab
3. Append to the classpath:
<full path to Apptivity install dir>:\lib\o4glrt.jar
(e.g., c:\Apptivity31\lib\o4glrt.jar)

Adding this o4glrt.jar on the Classpath tab under
Project->Properties will not help, since Developer only looks at
the classpath under Tools->Options.

4. Exit the Apptivity Developer, and restart.
This step is necessary because Developer does not dynamically
append additions to its view of the classpath when the classpath is
modified.


References To Written Documentation or Other KnowledgeBase Documents:

Apptivity Developer's Guide Version 3.2, pages 19-20 - 19-27,
"Progress SmartDataObjects SmartAdapter"