Hello,

I've got some classpath issues with an external lib that seems not be not present in the classpath for an extension component that I'm working on.

It is the Apache Xerces API that is loaded as a xercesImpl.jar in the project, and needs to be available for parsing the document data inside the extension.

The external jars have been added to the project libraries, and are found by the project. However my component's jar inside the extension which uses the API seems not to be able to find the other jars in the extension.

The error which is generated:

SAX2 driver class org.apache.xerces.parsers.SAXParser not found.

The extension's structure is as follows:
--------------------------
Test2.oxt
-- META-INF
-- registry/...
-- description.xml
-- lib/xercesImpl.jar  (the external API)
-- Test2.jar  (component)
--------------------------
Also, when trying to edit the manifest.mf in the project, it always reverts back to its initial version when the project compiles.

The contents is as follows:
--------------------------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 14.3-b01 (Sun Microsystems Inc.)
UNO-Type-Path:
RegistrationClassName: org.openoffice.comp.gallery2.CentralRegistratio
 nClass
Class-Path: lib/xercesImpl.jar lib/xml-apis.jar

Name: org/openoffice/comp/gallery2/CentralRegistrationClass.class
RegistrationClasses: org.openoffice.comp.gallery2.Gallery2
--------------------------

Has anyone experienced this problem before? I guess that modifying the manifest.mf file would solve it, but I am no way being let to change the file.

Best Regards

Per Eriksson



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to