Deploying the application
Applications built with ArcGIS Runtime SDK for Java are self-contained. For example, they do not add keys to the registry. Deploying them can be as simple as copying and pasting your runnable .jar file along with other dependent files to a different machine/device. Likewise, uninstalling can be as simple as deleting the files. The SDK lets you build and deploy self-contained, stand-alone applications or build and deploy capabilities into existing software. The following procedure applies to both types of deployments.
- Make sure you have received the licenses you need for the capabilities you included in the application. For details on which licenses are needed for which capabilities and how to acquire them, see Functionality set requirements.
- Authorize the deployment packs, then obtain a license string and add it to your project.
- Prepare your application—Compile your application, then place it and any associated resources, such as packages, data, or dependent .jar files, inside a folder you intend to use as a deployment folder. For example, for WPF, you need your .exe file, ESRI.ArcGIS.Client.dll, and if using local services, ESRI.ArcGIS.Client.Local.dll. For details on which dependent .jar files you need, see List of files for deployment.
- Because every application requires a minimum set of runtime components, you must create a runtime deployment using the Deployment Builder, as described in Create a runtime deployment. This results in a folder named arcgisruntime10.1.1 that contains files needed by your application.
For applications that use local services: If the file is at the same level as the arcgisruntime10.1.1 folder, then the application will use the local server contained in the arcgisruntime10.1.1 folder. You can confirm this in Windows Task Manager by checking the Image Path Name of the Runtime LocalServer.exe processes.
- The deployment folder now contains everything that you need to deploy your application. To distribute/deploy your application, copy and paste the deployment folder onto each of your end-user's machines/devices. Each deployment folder will be self contained and will consist of:
- Your application ( file)
- Supporting .jar files your application uses, including dependent .jar files listed at List of files for deployment
- Runtime components from step 4 in a folder named arcgisruntime10.1.1.
- Supporting files, such as data/packages for local use. When you package data for use with your application, a report is provided that tells you which runtime components the package requires. Use this report to determine which runtime components to select during the deployment process.
Test the application by running it from this location.