<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Runtime deployment help needed in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405650#M1250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I might add that, in the case you installed ArcGIS RT without administrative privileges, the environment variable may not have been set. You can alternatively set it manually. In Windows, this can be done via system properties (see pic). In Linux, follow the instructions to "Set ArcGIS Runtime SDK for Java environment variables" &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/java/guide/install-the-sdk.htm"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 01:59:17 GMT</pubDate>
    <dc:creator>CarlosColón-Maldonado</dc:creator>
    <dc:date>2014-06-19T01:59:17Z</dc:date>
    <item>
      <title>Runtime deployment help needed</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405647#M1247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app built with the eclipse 10.1.1 java runtime sdk.&amp;nbsp; The sdk client components are used to access an arcgis server.&amp;nbsp; I use the Geoprocessor and GPTaskInfo objects, etc.&amp;nbsp; I need to generate a stand-alone war file.&amp;nbsp; 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.&amp;nbsp; I have an ArcGISRuntime.setLicense() call in my code with a test license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test, I renamed the ARCGISRUNTIMEJAVASDK10_1_1 environment variable and ran the war on the development box (I need to, for other reasons).&amp;nbsp; The first call through the Geoprocessor object to the server results in this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\apache-tomcat-7.0.26\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to read environment variable ARCGISRUNTIMESDKJAVA_10_1_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.getInstallDirectory(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.a(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.getClientLibPath(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.core.tasks.ags.geoprocessing.Geoprocessor.&amp;lt;clinit&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the app is still looking for an installed runtime sdk.&amp;nbsp; Does this mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I am not picking up the deployment folder dlls, etc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I need to remove some runtime sdk artifact from the build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Or what?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the eclipse project/build needs to be modified, please provide details.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 19:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405647#M1247</guid>
      <dc:creator>JayPhiloon1</dc:creator>
      <dc:date>2014-03-27T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime deployment help needed</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405648#M1248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you run your executable jar is will be looking for an runtime deployment.&amp;nbsp; It will expect to find this in a ArcGISRuntime10.x. directory which is in the same place as the jar file.&amp;nbsp; Failing that it will use the environment variable to seek out the install location (this is usally what happens on the development platform).&amp;nbsp; If it can't find either then it gives up and throws an error.&amp;nbsp; This what you are seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an application in the SDK which helps you to create deployments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405648#M1248</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2014-03-28T14:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime deployment help needed</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405649#M1249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;C:\apache-tomcat-7.0.26\bin&lt;BR /&gt;Failed to read environment variable ARCGISRUNTIMESDKJAVA_10_1_1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.getInstallDirectory(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.a(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.getClientLibPath(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.esri.core.tasks.ags.geoprocessing.Geoprocessor.&amp;lt;clinit&amp;gt;(Unknown Source)&lt;BR /&gt;&lt;BR /&gt;Apparently the app is still looking for an installed runtime sdk.&amp;nbsp; Does this mean&lt;BR /&gt;- I am not picking up the deployment folder dlls, etc?&lt;BR /&gt;- I need to remove some runtime sdk artifact from the build?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your observations are correct. &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-java/apiref/com/esri/runtime/ArcGISRuntime.html"&gt;ArcGISRuntime&lt;/A&gt;&lt;SPAN&gt; is going to look for its installed directory in two places: where it has been installed, or when it has been told to look, where its default is the former if its not told. To tell it to look at your deployment folder, you must &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-java/apiref/com/esri/runtime/ArcGISRuntime.html#setInstallDirectory(java.lang.String)"&gt;set its installed directory&lt;/A&gt;&lt;SPAN&gt; before it, or any other component like your Geoprocessor, inquire if it has been initialized. I've found that it's best to tell it which deployment folder to use and have it initialize itself afterwards to ensure there wouldn't be future problems (the folder is OK, licensed valid, etc). However, you won't find out if you have enough components in your deployment folder until your app asks for such functionality. For this reason, I have always enable the full set of packages and not guess at what might eventually be missing later, such as in production. It supports long-term future developments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 14:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405649#M1249</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2014-03-29T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime deployment help needed</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405650#M1250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I might add that, in the case you installed ArcGIS RT without administrative privileges, the environment variable may not have been set. You can alternatively set it manually. In Windows, this can be done via system properties (see pic). In Linux, follow the instructions to "Set ArcGIS Runtime SDK for Java environment variables" &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/java/guide/install-the-sdk.htm"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 01:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/runtime-deployment-help-needed/m-p/405650#M1250</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2014-06-19T01:59:17Z</dc:date>
    </item>
  </channel>
</rss>

