<?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: Java Independent Executable, excel file builder in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856739#M5552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;"&gt;As executable: program runs up until arcObjects imports are used. Then program just skips all that, and ends.&amp;nbsp;&lt;BR /&gt;As ArcCatalog add-in:&amp;nbsp;program runs up until apache imports are used. Then program just skips all that, and ends.&amp;nbsp;&lt;BR /&gt;Using Java 8 [jdk 1.8.0_231], IDE eclipse neon.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 22:06:19 GMT</pubDate>
    <dc:creator>LaurenPeckman</dc:creator>
    <dc:date>2019-11-19T22:06:19Z</dc:date>
    <item>
      <title>Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856737#M5550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;Using ArcDesktop, not Runtime or Pro:&amp;nbsp;&lt;BR /&gt;I'm written a little java program that reads through some shapefiles, grabs some data, runs certain calculations, and outputs an Excel Workbook with those calculations. I'd intended it to be an ArcCatalog add-in, but the apache jars for the Excel Workbook seem to be causing a problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Alright, so I'll wrap it up as an independent executable, then. Simple enough.&amp;nbsp;&lt;BR /&gt;Well, the .exe doesn't run any of the program which interacts with the arcobjects.jar at all. Skips right over it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, &lt;BR /&gt;If I try as executable, the arcobjects jar is the problem.&lt;BR /&gt;If I try as add-in, the apache jars are the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made sure that my IDE, my jvm, and my executable wrapper all can only run 32-bit, not 64-bit.&amp;nbsp;&lt;BR /&gt;I'm stuck!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a particular, necessary step to exporting my java code to an .exe that engages the arcobjects jar? Something I might have missed?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any particular library that's compatible with ArcDesktop that allows one to write an excel file, as apache seems to be an issue with java add-ins?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 19:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856737#M5550</guid>
      <dc:creator>LaurenPeckman</dc:creator>
      <dc:date>2019-11-14T19:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856738#M5551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exact issues are you seeing with either scenario and which Java version does your build target?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:37:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856738#M5551</guid>
      <dc:creator>CraigWilliams</dc:creator>
      <dc:date>2019-11-19T21:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856739#M5552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;"&gt;As executable: program runs up until arcObjects imports are used. Then program just skips all that, and ends.&amp;nbsp;&lt;BR /&gt;As ArcCatalog add-in:&amp;nbsp;program runs up until apache imports are used. Then program just skips all that, and ends.&amp;nbsp;&lt;BR /&gt;Using Java 8 [jdk 1.8.0_231], IDE eclipse neon.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856739#M5552</guid>
      <dc:creator>LaurenPeckman</dc:creator>
      <dc:date>2019-11-19T22:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856740#M5553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any chance you can share code or a small example case? Is it Apache POI you're using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856740#M5553</guid>
      <dc:creator>CraigWilliams</dc:creator>
      <dc:date>2019-11-19T22:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856741#M5554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;"&gt;It IS apache POIs, here are the jars I'm using for that:&amp;nbsp;&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;commons-collections4-4.4.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;commons-compress-1.19.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;commons-lang3-3.9.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;poi-4.1.0.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;poi-ooxml-4.1.0.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;&lt;SPAN style="background-color: #222222;"&gt;poi-ooxml-schemas-4.1.0.jar&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;xmlbeans3.1.0.jar&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;"&gt;&lt;BR style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;" /&gt;As for example code, I need to be particularly conscientious about that. I don't believe I can provide that at the moment.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856741#M5554</guid>
      <dc:creator>LaurenPeckman</dc:creator>
      <dc:date>2019-11-19T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Java Independent Executable, excel file builder</title>
      <link>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856742#M5555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="null;/*startdm*/background-color: rgba(0, 0, 0, 0) !important;"&gt;My solution was:&amp;nbsp;&lt;BR /&gt;-Separate out the Excel Workbook builder, with relies upon Apache jars, into a separate program, and send to the users as an executable.&amp;nbsp;&lt;BR /&gt;-Users run all the other code as an ArcCatalog add-in, which produces a .txt file, not an .xlsx file.&lt;BR /&gt;-Users then run the .exe, which is now designed to read the .txt file.&amp;nbsp;&lt;BR /&gt;-Users get their Excel file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not ideal. But I couldn't figure out what else to do, as the entire program would not function, intact, as either an .exe or an Add-in.&amp;nbsp;&lt;BR /&gt;It was either keep the arcobjects jar &amp;amp; the apache jars separate from one another, or rewrite the entire program in another language (which would take considerably more time for a junior-level developer).&lt;BR /&gt;&lt;BR /&gt;Not super happy with my solution, as I lost some of the elegance &amp;amp; user-friendliness I'd initially built. But it works. And that's how much I know, at this point in time.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 20:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/java-independent-executable-excel-file-builder/m-p/856742#M5555</guid>
      <dc:creator>LaurenPeckman</dc:creator>
      <dc:date>2019-12-02T20:01:55Z</dc:date>
    </item>
  </channel>
</rss>

