<?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 Error java.lang.UnsatisfiedLinkError when loading Java SDK on Development server in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/error-java-lang-unsatisfiedlinkerror-when-loading/m-p/564815#M1773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed this tutorial (&lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/guide/get-the-sdk.htm" title="https://developers.arcgis.com/java/latest/guide/get-the-sdk.htm"&gt;Get the SDK—ArcGIS Runtime SDK for Java | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) to setup with maven the ArcGis SDK on my local environment and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to deploy this application on an EC2 server from AWS. I can generate the .jar with "mvn clean install" and execute it on server with "java -jar &amp;lt;name&amp;gt;.jar". I have also sent the files generated from dependency:unpack to the server, and added them to /home/&amp;lt;user&amp;gt;/.arcgis and also to the folder that my application is running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to use functionalities that depends on arcgis I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: /var/www/u/jniLibs/LX64/libruntimecore_java.so: libGL.so.1: cannot open shared object file: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This file exists on this path, and if I give all permissions to this folder with chmod the error is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.NoClassDefFoundError: Could not initialize class com.esri.arcgisruntime.geometry.SpatialReferences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this? Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2020 13:28:46 GMT</pubDate>
    <dc:creator>RafaelFreitas</dc:creator>
    <dc:date>2020-07-23T13:28:46Z</dc:date>
    <item>
      <title>Error java.lang.UnsatisfiedLinkError when loading Java SDK on Development server</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/error-java-lang-unsatisfiedlinkerror-when-loading/m-p/564815#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed this tutorial (&lt;A class="link-titled" href="https://developers.arcgis.com/java/latest/guide/get-the-sdk.htm" title="https://developers.arcgis.com/java/latest/guide/get-the-sdk.htm"&gt;Get the SDK—ArcGIS Runtime SDK for Java | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) to setup with maven the ArcGis SDK on my local environment and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to deploy this application on an EC2 server from AWS. I can generate the .jar with "mvn clean install" and execute it on server with "java -jar &amp;lt;name&amp;gt;.jar". I have also sent the files generated from dependency:unpack to the server, and added them to /home/&amp;lt;user&amp;gt;/.arcgis and also to the folder that my application is running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to use functionalities that depends on arcgis I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.UnsatisfiedLinkError: /var/www/u/jniLibs/LX64/libruntimecore_java.so: libGL.so.1: cannot open shared object file: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This file exists on this path, and if I give all permissions to this folder with chmod the error is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.NoClassDefFoundError: Could not initialize class com.esri.arcgisruntime.geometry.SpatialReferences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this? Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 13:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/error-java-lang-unsatisfiedlinkerror-when-loading/m-p/564815#M1773</guid>
      <dc:creator>RafaelFreitas</dc:creator>
      <dc:date>2020-07-23T13:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error java.lang.UnsatisfiedLinkError when loading Java SDK on Development server</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/error-java-lang-unsatisfiedlinkerror-when-loading/m-p/564816#M1774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone having the same issue, I solved with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;sudo apt update 
sudo apt install libgl1-mesa-glx&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/error-java-lang-unsatisfiedlinkerror-when-loading/m-p/564816#M1774</guid>
      <dc:creator>RafaelFreitas</dc:creator>
      <dc:date>2021-12-12T00:20:36Z</dc:date>
    </item>
  </channel>
</rss>

