<?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 Problems in creating executable jar file  in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297301#M864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't able to run my simple map application as executable jar file. When i try to run the jar file in command prompt, it shows error like "could not find or load main class" but when creating the jar file i included main class in it.&amp;nbsp; what could be the problem? This happens when using java 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using java 11, I can't able to create&amp;nbsp; executable jar. Eclipse doesn't show any main class to choose.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2019 13:03:03 GMT</pubDate>
    <dc:creator>ArchanaVenkataraman</dc:creator>
    <dc:date>2019-12-04T13:03:03Z</dc:date>
    <item>
      <title>Problems in creating executable jar file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297301#M864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't able to run my simple map application as executable jar file. When i try to run the jar file in command prompt, it shows error like "could not find or load main class" but when creating the jar file i included main class in it.&amp;nbsp; what could be the problem? This happens when using java 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using java 11, I can't able to create&amp;nbsp; executable jar. Eclipse doesn't show any main class to choose.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297301#M864</guid>
      <dc:creator>ArchanaVenkataraman</dc:creator>
      <dc:date>2019-12-04T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating executable jar file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297302#M865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not used Eclipse for many years (prefer IJ Idea) but I would start by taking a look at one of our sample apps.&amp;nbsp; This is a good basic one to get going with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/display-map" title="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/display-map"&gt;arcgis-runtime-samples-java/map/display-map at master · Esri/arcgis-runtime-samples-java · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see the structure of the app contains a launcher class which is needed for JavaFX 11 apps to work in a runnable jar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use gradle, then run the jar task which will build you a runnable jar.&amp;nbsp; In the project above this will appear in the build/libs directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that when you deploy, you will need the native libraries next to the jar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="475267" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/475267_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doc explains the structure above:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/guide/deploy-your-app.htm" title="https://developers.arcgis.com/java/latest/guide/deploy-your-app.htm"&gt;Deploy your app—ArcGIS Runtime SDK for Java | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how your machine is set up you can double click on the jar or just do a 'java -jar' from the command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297302#M865</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-12-04T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating executable jar file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297303#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion Mark Baird. But&amp;nbsp;while running&amp;nbsp; the jar file, still I got error like this,&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/475341_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 05:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297303#M866</guid>
      <dc:creator>ArchanaVenkataraman</dc:creator>
      <dc:date>2019-12-05T05:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in creating executable jar file</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297304#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you building the jar.&amp;nbsp; Are you using Eclipse or are you running a gradle script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you starting you app by calling the wrapper/launcher class as we have in the example app:&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-java/blob/master/map/display-map/src/main/java/com/esri/samples/display_map/DisplayMapLauncher.java" title="https://github.com/Esri/arcgis-runtime-samples-java/blob/master/map/display-map/src/main/java/com/esri/samples/display_map/DisplayMapLauncher.java"&gt;arcgis-runtime-samples-java/DisplayMapLauncher.java at master · Esri/arcgis-runtime-samples-java · GitHub&lt;/A&gt;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This needs to be what you reference in the manifest in the jar file.&amp;nbsp; In my manifast.mf file I have the following entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manifest-Version: 1.0&lt;BR /&gt;Main-Class: com.esri.samples.display_map.DisplayMapLauncher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/problems-in-creating-executable-jar-file/m-p/297304#M867</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-12-05T12:57:20Z</dc:date>
    </item>
  </channel>
</rss>

