To invoke non-EGL Java code from Java code generated by EGL, you must create an Interface part of type JavaObject. The Interface part contains function descriptions for the Java methods you wish to call.
You can call functions in a single, non-EGL dynamic link library (DLL) (written in, for example, C or COBOL) from an EGL Java program. The file extension for the DLL depends on your environment (examples include .dll, .so, and .sl).
You create a Library part of type nativeLibrary to act as an interface between your EGL program and the DLL. The Library part lists function names and parameters, and can use the alias property of the functions where function names do not match EGL conventions.
Access the functions by using dot syntax (library.function()) or by creating a use declaration for the library to make its functions global to your program.