Consultor Eletrônico



Kbase P113994: Class ENamedElement cannot be found when executing Java Open Client
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/03/2006
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.1A

SYMPTOM(s):

Class ENamedElement cannot be found when executing Java Open Client

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/emf/ecore/ENamedElement

The error does not occur when compiling the Java program

The CLASSPATH contains a reference to o4glrt.jar.

CAUSE:

The ENamedElement class belongs to Eclipse. It is provided by the ecore.jar package located in <OpenEdge installation directory>\java\ext.
This Eclipse package is missing in the CLASSPATH.

When deploying an Open Client application that uses a Java proxy, the following third-party Eclipse jar files must also be deployed and included in the CLASSPATH environment variable:
common.jar
commonj.sdo.jar
ecore.jar
ecore.change.jar
ecore.sdo.jar
ecore.resource.jar
ecore.xmi.jar


FIX:

To deploy a client application that uses a Java proxy:
- Copy the Eclipse jar files below in a directory where the Java Open Client Runtime resides.
common.jar
commonj.sdo.jar
ecore.jar
ecore.change.jar
ecore.sdo.jar
ecore.resource.jar
ecore.xmi.jar

- Include those Eclipse jar files in the CLASSPATH variable environment.
Example for Windows:
set CLASSPATH=<Path>\common.jar;<Path>\commonj.sdo.jar;<etc..>