I have never seen that error before. However a Google search shows some results:
AutomationException: 0x80040154 - Class not registered
AutomationException: 0x80040154 - Class not registered com.esri.arcgis.interop.NativeObjRef
ArcEngine on Linux RHEL, unresolved libshlwapi.so
Most seem to suggest that one of the ESRI DLL files has not been registered with the system. This is in the context of COM registration and not ESRI licensing.
Check out the ESRI documentation and samples at: ArcGIS SDK for Java | ArcGIS for Developers
The SDK site has the downloads and tutorials to get started.
This page shows how to connect to ArcGIS Server layers: Add a map to your app—ArcGIS Runtime SDK for Java | ArcGIS for Developers
Thanks for your help.
I learn from http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/#/Server/000100000715000000/.
and initialize ArcGIS Licenses.
But I get an error:Exception in thread "main" AutomationException: 0x80040154 - Class not registered.
when I connection('cx').
I have never seen that error before. However a Google search shows some results:
AutomationException: 0x80040154 - Class not registered
AutomationException: 0x80040154 - Class not registered com.esri.arcgis.interop.NativeObjRef
ArcEngine on Linux RHEL, unresolved libshlwapi.so
Most seem to suggest that one of the ESRI DLL files has not been registered with the system. This is in the context of COM registration and not ESRI licensing.