<?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 compile an run the starter project from github in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/compile-an-run-the-starter-project-from-github/m-p/1340825#M2801</link>
    <description>&lt;P&gt;Hi, i try to run the starter project sample from github (&lt;A href="https://github.com/Esri/java-zip-starter-project)" target="_blank" rel="noopener"&gt;https://github.com/Esri/java-zip-starter-project)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I followed the instructions from &lt;A href="https://developers.arcgis.com/java/install-and-set-up/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/java/install-and-set-up/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so finally the single Java Class App compiles without errors or warnings.&lt;/P&gt;&lt;P&gt;But if i run the the App i get a noclassdeffounderror:&lt;/P&gt;&lt;P&gt;Fehler: Hauptklasse com.mycompany.app.App konnte nicht gefunden oder geladen werden&lt;BR /&gt;Ursache:&lt;/P&gt;&lt;P&gt;(in englisch: error: main class com.mycompany.app.App could not be found or loaded,&lt;BR /&gt;cause: java.lang.NoClassDefFoundError: javafx/application/Application)&lt;/P&gt;&lt;P&gt;i found the Application Class in the javafx.graphics.jar and this jar is also in the build path:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahpuch_0-1698145241523.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83779iAF89840689579215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahpuch_0-1698145241523.png" alt="Ahpuch_0-1698145241523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so why doesn't the app start?&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 11:01:57 GMT</pubDate>
    <dc:creator>Ahpuch</dc:creator>
    <dc:date>2023-10-24T11:01:57Z</dc:date>
    <item>
      <title>compile an run the starter project from github</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/compile-an-run-the-starter-project-from-github/m-p/1340825#M2801</link>
      <description>&lt;P&gt;Hi, i try to run the starter project sample from github (&lt;A href="https://github.com/Esri/java-zip-starter-project)" target="_blank" rel="noopener"&gt;https://github.com/Esri/java-zip-starter-project)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I followed the instructions from &lt;A href="https://developers.arcgis.com/java/install-and-set-up/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/java/install-and-set-up/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;so finally the single Java Class App compiles without errors or warnings.&lt;/P&gt;&lt;P&gt;But if i run the the App i get a noclassdeffounderror:&lt;/P&gt;&lt;P&gt;Fehler: Hauptklasse com.mycompany.app.App konnte nicht gefunden oder geladen werden&lt;BR /&gt;Ursache:&lt;/P&gt;&lt;P&gt;(in englisch: error: main class com.mycompany.app.App could not be found or loaded,&lt;BR /&gt;cause: java.lang.NoClassDefFoundError: javafx/application/Application)&lt;/P&gt;&lt;P&gt;i found the Application Class in the javafx.graphics.jar and this jar is also in the build path:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ahpuch_0-1698145241523.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83779iAF89840689579215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ahpuch_0-1698145241523.png" alt="Ahpuch_0-1698145241523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so why doesn't the app start?&lt;/P&gt;&lt;P&gt;any help is appreciated&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 11:01:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/compile-an-run-the-starter-project-from-github/m-p/1340825#M2801</guid>
      <dc:creator>Ahpuch</dc:creator>
      <dc:date>2023-10-24T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: compile an run the starter project from github</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/compile-an-run-the-starter-project-from-github/m-p/1340840#M2802</link>
      <description>&lt;P&gt;There will be a setting somewhere in IntelliJ that needs correcting...&amp;nbsp; I could try to diagnose this, but there is a much nicer way of getting going with the product.&amp;nbsp; The zip approach is probably the hardest way of getting going and isn't what I'd recommend for a new project unless there is a particular reason.&lt;/P&gt;&lt;P&gt;What I'd recommend is following the &lt;A href="https://github.com/Esri/java-gradle-starter-project" target="_self"&gt;gradle&lt;/A&gt; starter project approach - you'll likely have it working very quickly and its a much more modern approach to building apps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's also worth noting we've got 200+ samples using the gradle approach in this git &lt;A href="https://github.com/Esri/arcgis-maps-sdk-java-samples/" target="_self"&gt;repository&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Does this help?&amp;nbsp; Happy to assist with the zip approach, but its not what I'd recommend if you can avoid it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/compile-an-run-the-starter-project-from-github/m-p/1340840#M2802</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2023-10-24T12:07:01Z</dc:date>
    </item>
  </channel>
</rss>

