I have an app built with the eclipse 10.1.1 java runtime sdk. The sdk client components are used to access an arcgis server. I use the Geoprocessor and GPTaskInfo objects, etc. I need to generate a stand-alone war file. To this end, I have generated a deployment folder with "Client Core" and "Local Server" capabilities (no selected deployment options) and have added it to the application, in the Libraries section. I have an ArcGISRuntime.setLicense() call in my code with a test license.
To test, I renamed the ARCGISRUNTIMEJAVASDK10_1_1 environment variable and ran the war on the development box (I need to, for other reasons). The first call through the Geoprocessor object to the server results in this:
C:\apache-tomcat-7.0.26\bin
Failed to read environment variable ARCGISRUNTIMESDKJAVA_10_1_1
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.initialize(Unknown Source)
at com.esri.core.tasks.ags.geoprocessing.Geoprocessor.<clinit>(Unknown Source)
Apparently the app is still looking for an installed runtime sdk. Does this mean
- I am not picking up the deployment folder dlls, etc?
- I need to remove some runtime sdk artifact from the build?
- Or what?
If the eclipse project/build needs to be modified, please provide details. Thanks.