Is This Content Helpful?
We're glad to know this article was helpful.
When Java applications that depend on Defense Solutions MOLE/Military Analyst libraries are run on Linux with ArcGIS 10, the following error displays when invoking objects from these libraries:
"[java] AutomationException: 0x80040154 - Class not registered"
Instructions provided describe the workaround, which is to force the load of these libraries at runtime using a JNI call.
The files in this folder create a library called 'libdefsolinitializer.so', which is needed to create DefenseSolutions (MOLE or Military Analyst) objects in Java in ArcGIS Engine releases starting at ArcGIS Defense Solutions 10.
This folder contains/builds a C library that acts as a Java Native Interface (JNI) wrapper to call the required C-initialization method 'DSInitialize'.
The 'Makefile' builds and copies the library, 'libdefsolinitializer.so', to $ARCGISENGINEHOME/bin. If this library needs to be placed in another location, the following must be added to the location/folder: LD_LIBRARY_PATH.
Requirements: ArcGIS Engine Runtime + CPPAPI + Java.