error during the execution of the pilot project by following this tutorial.
here is the error message:
java.lang.RuntimeException: Unable to find runtime installation. Searched following places:
H:\workspace\NewProject
Failed to read environment variable ARCGISRUNTIMESDKJAVA_10_2_3
at com.esri.runtime.ArcGISRuntime.getInstallDirectory(Unknown Source)
at com.esri.runtime.ArcGISRuntime.a(Unknown Source)
at com.esri.runtime.ArcGISRuntime.getClientLibPath(Unknown Source)
at com.esri.runtime.ArcGISRuntime.f(Unknown Source)
at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.esri.core.internal.util.e.b(Unknown Source)
at com.esri.core.internal.util.e.a(Unknown Source)
at com.esri.core.internal.util.e$2.initialize(Unknown Source)
at com.esri.core.geometry.GeometryEngine.a(Unknown Source)
at com.esri.core.geometry.GeometryEngine.<clinit>(Unknown Source)
at com.esri.core.geometry.SpatialReference.<clinit>(Unknown Source)
at com.esri.map.MapOptions.<clinit>(Unknown Source)
at NewClass.<init>(NewClass.java:43)
at NewClass$2.run(NewClass.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.esri.core.internal.util.e.b(Unknown Source)
at com.esri.core.internal.util.e.a(Unknown Source)
at com.esri.core.internal.util.e$2.initialize(Unknown Source)
at com.esri.core.geometry.GeometryEngine.a(Unknown Source)
at com.esri.core.geometry.SpatialReference.<clinit>(Unknown Source)
at com.esri.map.MapOptions.<clinit>(Unknown Source)
at NewClass.<init>(NewClass.java:43)
at NewClass$2.run(NewClass.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library:
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.esri.runtime.ArcGISRuntime.f(Unknown Source)
at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source)
... 26 more
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library:
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.esri.runtime.ArcGISRuntime.f(Unknown Source)
at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source)
at com.esri.map.JMap.<clinit>(Unknown Source)
at NewClass.<init>(NewClass.java:46)
at NewClass$2.run(NewClass.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Please can somebody help me?
System.setProperty("user.dir", "C:\\Program Files\\ArcGIS SDKs\\java10.2.3\\"); |
Did you run this app on the same machine you installed the SDK on? If so, this excception should not be happening.
If you are trying to run this app on a different machine, you will need to run the Deployment Builder too to create a Runtime deployment, then move the deployment to the target machine. You can follow the steps described here: https://developers.arcgis.com/java/guide/build-a-runtime-deployment.htm
I hope this helps!