<?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 Java AddIn with 3rd party libs in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112232#M2934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently I am working on an AddIn for ArcGIS 10.1 and run into the same problem. Unfortunately the described workaround does not work for me. Running the Addin in ArcGIS desktop while the debugger in eclipse listens to the current ArcGIS port, I get the Error Message "Source not found" on the console when initializing the first object of a third party library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a bit annoying that there is no description for the deployment process with third party libs on the resource centre.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great to get some input on this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2013 07:15:53 GMT</pubDate>
    <dc:creator>MartinRick</dc:creator>
    <dc:date>2013-01-09T07:15:53Z</dc:date>
    <item>
      <title>Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112226#M2928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a custom Java ArcMAP add-in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's using a webservice under the JSON library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to use an external library to work on json objects&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I now integrate the "json.jar" library in my xyz.esriaddin file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a content description for the .esriaddin file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 19:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112226#M2928</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2010-05-20T19:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112227#M2929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just got the solution from ESRI support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It was too simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Just put the needed jar-file into:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; C:\Program Files (x86)\ArcGIS\Desktop10.0\java\lib\ext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 May 2010 11:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112227#M2929</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2010-05-22T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112228#M2930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is not appropriate to drop dependent JAR files of an add-in in %AGSDESKTOPJAVA%java/lib/ext folder for the following two reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The java/lib/ext folder is exclusively meant for &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISEngine/java/concepts_start.htm#doc/80146cac-6b50-4c82-a9f5-7a5be3406c5b.htm"&gt;ArcGIS java extension&lt;/A&gt;&lt;SPAN&gt; JAR files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. An ESRIAddin should be easy to share and install. Hence, it should be self-contained and we should avoid any dependencies on external folders and files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is another approach to include dependent JAR files that does not contradict add-in design model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Export the Add-in as usual using Export add-in link in Eclipse IDE and place it in a temporary location (C:\temp). &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Next, rename the .esriaddin extension to .zip and extract its contents.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You will notice an install folder under the extracted contents. Copy your dependent JAR files to the Install folder.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Modify the manifest.mf file under META-INF folder and specify the dependent JAR files using Class-Path attribute.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Now, create a zip file with the modified contents and then, rename the extension of the zip file to .esriaddin as before.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Double click on it to install.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;-MJ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 20:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112228#M2930</guid>
      <dc:creator>ArokiyaJoseph</dc:creator>
      <dc:date>2010-05-24T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112229#M2931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried that out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It didn't worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried with both manifest.inf entries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Class-Path: json.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Class-Path: Install/json.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None were working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you reproduce it? Have you a working sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the ArcGIS desktop PreRelease version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 14:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112229#M2931</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2010-05-25T14:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112230#M2932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a very simple addin(MainAddIn.zip, rename it to .esriaddin when you want to deploy) which has one button and onclick of the button I am executing a logic which is there inside a third party jar(utiladdin.jar).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you click the button after adding it to ArcMap.it will call the class from the 3rd party jar and show a message box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Coming back to your case I'm assuming something is going wrong in step4 in the below post.To be little clear:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change the manifest file of the addin jar(which is there in the install folder NOT the parent one) and point to the 3rd party jar by using Class-Path attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are planning to make the 3rd party jar packaging experience easier in eclipse in the comming release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sankar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 21:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112230#M2932</guid>
      <dc:creator>sankarsinha1</dc:creator>
      <dc:date>2010-05-25T21:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112231#M2933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, I got it working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did the mistake that I created a manifest-file inside the esriaddin-file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After editing the manifest-file of the "esriaddin-INSTALL-jar-file", everything is working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my addin is self-contained.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Great work and very easy to integrate Java functionality into ArcDesktop!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 03:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112231#M2933</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2010-05-26T03:15:34Z</dc:date>
    </item>
    <item>
      <title>Java AddIn with 3rd party libs</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112232#M2934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently I am working on an AddIn for ArcGIS 10.1 and run into the same problem. Unfortunately the described workaround does not work for me. Running the Addin in ArcGIS desktop while the debugger in eclipse listens to the current ArcGIS port, I get the Error Message "Source not found" on the console when initializing the first object of a third party library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a bit annoying that there is no description for the deployment process with third party libs on the resource centre.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great to get some input on this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 07:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112232#M2934</guid>
      <dc:creator>MartinRick</dc:creator>
      <dc:date>2013-01-09T07:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112233#M2935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, great thread.&amp;nbsp; Can't believe it is two years old.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just looking at this earlier and had talked to Tom about how he was able to deploy his third part jar file with an addin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to add my comments to Tom's and Monica's posts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If using Eclipse, create your addin the normal way.&amp;nbsp; Add references to your project from your user library containing the third party jar files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somewhere in your project, create a MANIFEST.MF file containing at least this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Manifest-Version: 1.0
Class-Path: your-thirdparty.jar

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the carriage return after the class path line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you export the addin from the config.xml window, there is an option to use your own MANIFEST.MF file.&amp;nbsp; Use your custom MANIFEST.MF file.&amp;nbsp; Eclipse will put that Manifest file in two places in the .esriaddin file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first location is the root of the esriaddin, located in the META-INF directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The second location is in the jar of "your" esriaddin, located in the Install directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make a copy of your esriaddin and rename it to whatever.zip.&amp;nbsp; Unzip it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to remove the class path value from the META-INF directory in the root of the esriaddin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The class path value will still be bundled up in your addin jar file, located in the Install directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add your third party jar files to the Install directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rezip your unzipped directories and rename to whatever.esriaddin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112233#M2935</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-11T06:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112234#M2936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have next problem with external library in Esri Add-In. I have no problem with *.jar external library, however I would like to use native library in C++ (*.dll). So I have one *.jar file which I have in Instal folder and now I need add .*dll libray into the the project. Can you help me please??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 13:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112234#M2936</guid>
      <dc:creator>JanKaspar</dc:creator>
      <dc:date>2013-07-30T13:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Java .esriaddin classpath</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112235#M2937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&amp;nbsp; Every body&amp;nbsp; I am new to one, and&amp;nbsp; i&amp;nbsp; am using&amp;nbsp; Eclipse Kepler &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When&amp;nbsp; i create&amp;nbsp; the .zip file i&amp;nbsp; donot have&amp;nbsp; installed folder &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; i&amp;nbsp; just&amp;nbsp; have config&amp;nbsp; file&amp;nbsp; and&amp;nbsp; Manifest folder&amp;nbsp; in my .esriaddin file &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please&amp;nbsp; give me a&amp;nbsp; link to get&amp;nbsp; complete .esriaddin file&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx to&amp;nbsp; all&amp;nbsp; in Addvance&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jodat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 06:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-esriaddin-classpath/m-p/112235#M2937</guid>
      <dc:creator>jodatasghar</dc:creator>
      <dc:date>2013-10-26T06:55:52Z</dc:date>
    </item>
  </channel>
</rss>

