<?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: Problems with java add-ins in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377165#M9967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alberto,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post a screenshot of your config.xml as seen in Eclipse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 12:53:49 GMT</pubDate>
    <dc:creator>LeoDonahue</dc:creator>
    <dc:date>2012-05-31T12:53:49Z</dc:date>
    <item>
      <title>Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377156#M9958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since ArcGIS 10 supports java for desktop development too, I tried to set up a java add-in for ArcMap. Before writing my own add-in I had a go with one of the samples provided by the Java SDK, called "simpleaddin".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can add the add-in to ArcMap without problems, and I can see it listed in the Add-In Manager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, when I bring up the add-in toolbar (SampleJava Toolbar) in ArcMap, no custom commands are shown, just a bunch of labels saying "missing". Native ArcMap commands (like Fixed Zoom Out) are visible on the toolbar though (see attached image).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried to create my own add-in, following the instructions given in this video:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/video/java/details?entryID=F8A0A38E-1422-2418-7FA3-CC2C83ED9674"&gt;http://resources.arcgis.com/gallery/video/java/details?entryID=F8A0A38E-1422-2418-7FA3-CC2C83ED9674&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in this case I couldn't even find my custom command in the commands list under "Customize".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried on two boxes, both running win7/64 and ArcMap w/ the most recent SP available installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clues?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 12:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377156#M9958</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-23T12:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377157#M9959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think the sample Java Add-ins work right, as that is how the toolbar appears when I run it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally, Java Add-ins deploy to a Command Category called "Java Commands", unless you created a toolbar and added those commands to the toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you read through this tutorial?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/0001000003m3000000.htm"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/0001000003m3000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you are developing under 10.0 on Windows 7, you can't use a 64-bit jvm, you still have to use the 32-bit jvm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377157#M9959</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-23T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377158#M9960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you ldonahue for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through that tutorial, and created a simple add-in with just one button popping up a message. The add-in installed ok (I got the "Installation succeeded" message, and the add-in is listed in the Add-in manager), but when I go to the Commands list to add the button to an existing toolbar, the "Java Commands" category (where the button is supposed to be) isn't even there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then checked my system's default JRE version, which actually was 64 bit. I removed it from the system, so now the default version is the 32 bit 1.7.0_02, but my problems are still here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 06:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377158#M9960</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-24T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377159#M9961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What values did you give for the button's required fields in the attached screenshot?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this example, you 'should' find a button called Test Button in the 'Java Commands' category.&amp;nbsp; Or if you named your category something other than 'Java Commands', then look in that category name for your button.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 13:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377159#M9961</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-25T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377160#M9962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ldonahue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the values are "New Button 1" and "Java Commands" (these are the names listed in the Add-In manager too). Nevertheless, the category "Java Commands" doesn't even exists in the Commands list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What configuration do you have? Is your system 32 or 64 bit? I feel like I'm missing something big here, because from the tutorials setting up a java arcmap add-in seems like a piece of cake... Maybe my service pack version is bugged (AG10 w/ sp4)? Maybe special privileges are needed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 14:33:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377160#M9962</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-25T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377161#M9963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eclipse Indigo 3.7.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Java 1.6.0_29 32-bit SDK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop 10.0 SP4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows 7 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have ArcMap open, remove your add-in using the add-in manager, close ArcMap, and re-export your add-in.&amp;nbsp; Launch ArcMap again, do you see your command now?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you creating an add-in for ArcMap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 14:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377161#M9963</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-25T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377162#M9964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you've got my same setup (i've got win7/64 though).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did what you advised:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- removed my add-in from add-in manager&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- re-exported the add-in from eclipse (yes, it's an arc-map add-in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- re-added add-in to arcmap (see attached screen cap, left)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- command still not available on command list (see screen cap, right)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14687[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D'oh!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 06:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377162#M9964</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-28T06:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377163#M9965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a similar problem last week. My AddIn category did not appear. It was a blank at the end of the category name, that caused this problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 10:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377163#M9965</guid>
      <dc:creator>DorisRiedl</dc:creator>
      <dc:date>2012-05-31T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377164#M9966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you dorisriedl,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked and made sure there were no blanks in my command and category names. I also removed the space between "Java" and "Commands". No luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 12:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377164#M9966</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-31T12:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377165#M9967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alberto,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post a screenshot of your config.xml as seen in Eclipse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 12:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377165#M9967</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-31T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377166#M9968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you guys for your patience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached to this message the screen cap from Eclipse and the content of the xml file itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;ESRI.Configuration xmlns="http://schemas.esri.com/Desktop/AddIns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
&amp;nbsp; &amp;lt;Name&amp;gt;TestAddIn3&amp;lt;/Name&amp;gt;
&amp;nbsp; &amp;lt;AddInID&amp;gt;92421ca6-0137-1000-5000-93a2889e0000&amp;lt;/AddInID&amp;gt;
&amp;nbsp; &amp;lt;Description&amp;gt;&amp;lt;/Description&amp;gt;
&amp;nbsp; &amp;lt;Version&amp;gt;1.0&amp;lt;/Version&amp;gt;
&amp;nbsp; &amp;lt;Image&amp;gt;&amp;lt;/Image&amp;gt;
&amp;nbsp; &amp;lt;Author&amp;gt;&amp;lt;/Author&amp;gt;
&amp;nbsp; &amp;lt;Company&amp;gt;&amp;lt;/Company&amp;gt;
&amp;nbsp; &amp;lt;Date&amp;gt;Mon May 28 09:03:55 CEST 2012&amp;lt;/Date&amp;gt;
&amp;nbsp; &amp;lt;Targets&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Target name="Desktop" version="10.0"/&amp;gt;
&amp;nbsp; &amp;lt;/Targets&amp;gt;
&amp;nbsp; &amp;lt;AddIn language="JAVA" library="TestAddIn3.jar"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ArcMap&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Commands&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Button caption="NewButton1" category="JavaCommands" class="Button1" id="button1"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Commands&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ArcMap&amp;gt;
&amp;nbsp; &amp;lt;/AddIn&amp;gt;
&amp;lt;/ESRI.Configuration&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377166#M9968</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2021-12-11T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377167#M9969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I notice that the name of your "class" is named "Button1".&amp;nbsp; Did you create that class by clicking on the "class" hyperlink, or did you browse to the class named "Button1"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 13:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377167#M9969</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-31T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377168#M9970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After creating the add-in, I just pushed the "Add..." button to created a Button, and the class was already named Button1. Then, I clicked the "class" hyperlink, and accepted all the default values (just clicked "Finish").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 13:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377168#M9970</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-31T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377169#M9971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok.&amp;nbsp; last thing I can suggest then is to delete your Add-in cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be located here:&amp;nbsp; C:\Users\Alberto?\AppData\Local\ESRI\Desktop10.0\AssemblyCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the directory that has your add-in and delete the directory.&amp;nbsp; Then re-export the add-in and try again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377169#M9971</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-05-31T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377170#M9972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I deleted the add-in cache, but that didn't change things either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if there is any log file I could check? I enabled the "Create console..." option from the ArcGIS Java Configuration Tool, but no error messages are shown...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377170#M9972</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2012-05-31T14:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377171#M9973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;C:\Users\Alberto?\AppData\Local\ESRI\Desktop10.0\Java\Log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you'll see anything in the logs if your class is not loading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the contents of my most recent log file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
INFO::Using the following arguments to create the JVM
-Djava.class.path=C:\Program Files (x86)\ArcGIS\Desktop10.0\\java\lib\arcobjects.jar
-Xms64m
-Xmx128m
-Xss512k
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8013
INFO::Successfully created an instance of : com/esri/arcgis/addinframework/AddInFactory
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377171#M9973</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-11T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377172#M9974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alberto,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you clicked the "class" hyperlink to create your Button 1 class, was it created in the right project?&amp;nbsp; Just checking.&amp;nbsp; I suspect that something is wrong with the way the Button 1 class was created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be what a generic Button Class looks like, if you override/implement the init() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import java.io.IOException;

import com.esri.arcgis.addins.desktop.Button;
import com.esri.arcgis.framework.IApplication;
import com.esri.arcgis.interop.AutomationException;


public class Button1 extends Button {

&amp;nbsp;&amp;nbsp;&amp;nbsp; /**
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Called when the button is clicked.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception java.io.IOException if there are interop problems.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @exception com.esri.arcgis.interop.AutomationException if the component throws an ArcObjects exception.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick() throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub

&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void init(IApplication app) throws IOException, AutomationException {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.init(app);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377172#M9974</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2021-12-11T17:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with java add-ins - SOLVED</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377173#M9975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ldonahue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I clicked the "class" hyperlink to create my "Button 1" class, the options on the dialog were the same as yours, and the class was created in the right project. But looking at your class code I noticed that my class was missing the init method (I should have checked that in the first place, my bad)!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless, after adding the missing method, I still couldn't see my button in the Customize dialog. I checked the log files, and realized that I had set the wrong JDK version (1.7) in Eclipse when I created the add-in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;INFO::Successfully created an instance of : com/esri/arcgis/addinframework/AddInFactory
java.lang.reflect.InvocationTargetException

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 at java.lang.reflect.Method.invoke(Method.java:597)

Caused by: java.lang.UnsupportedClassVersionError: Button1 : Unsupported major.minor version 51.0
...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I went back to Eclipse, compiled the project with the right JDK version (1.6), and finally the command was there!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your help, very appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alberto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/problems-with-java-add-ins/m-p/377173#M9975</guid>
      <dc:creator>AlbertoDe_Luca</dc:creator>
      <dc:date>2021-12-11T17:25:05Z</dc:date>
    </item>
  </channel>
</rss>

