To register your custom components (shared libraries, DLL's, OCX's, etc.) you will need to perform these simple steps:
- Source the init_engine.csh script in your runtime installation's $AGSENGINEJAVA. This will set all of the necessary environment variables necessary to find the runtime libraries, executables and scripts:
% source $AGSENGINEJAVA/init_engine.csh
- Modify the Unix library path so that any of your local library dependencies can be found during registration:
% setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:
- Run the regsvr32 utility as you would on Windows. The regsvr32 utility is packaged with the runtime installation.
% regsvr32 -c /libyourlibrary.so
These steps can easily be implemented as part of an installation script for your application. To get an idea how this is done see the engine registration scripts $AGSENGINEJAVA/.Setup/registerArcGISEngineRT and $AGSENGINEJAVA/.Setup/registerEngine.