External libraries

The PE macro-processor language allows invoking of code from external dynamically loaded libraries (external objects). This chapter describes how to implement those libraries and provides description of their API. Supported are MS Windows DLL libraries via %launchDLL command and on Eclipse pure Java PE-service platform %launchExt command is also available extending %launchDLL functionality to Java class libraries, Java class libraries stored in JAR files and shared objects on Linux systems.

This chapter describes required interface of external shared libraries so PE macro language is able to use them.

To make shared libraries functions accessible by PE macro language, unified API has to be used for them. Required API for Java libraries ( .class and .jar files) and OS shared libraries (dynamic-link libraries and shared objects) differs as Java libraries are accessible directly from PE Eclipse implementation contrary to OS shared libraries which are accessible only through Java Native Interface.

The topics covered here are as follows: