<?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 using arcgis engine runtime 10 to run program causes errors in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcgis-engine-runtime-10-to-run-program/m-p/318168#M8303</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;i am hoping that someone can give some insight as to why runtime is giving me errors when i run my own java written program with arcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the program is bundled in a executable jar file..i go to my terminal in linux(Centos 5) i source the init_engine.sh file and then i run the jar file ("java -jar MainWindow.jar")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i get alot of errors including...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.RuntimeException: Can not use native code: Initialisation failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeObjRef.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.beans.toolbar.ToolbarBean.a(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.mapping.Map.&amp;lt;init&amp;gt;(Map.java:349)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.&amp;lt;init&amp;gt;(MainWindow.java:260)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.main(MainWindow.java:634)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.testing.nhieu.Bootstrapper.main(Bootstrapper.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or these errors as well&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException: URI is not hierarchical&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:363)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeLoader.getArcGISHome(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeLoader.loadLibrary(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.math.Compute.initializeArcGISLicenses(Compute.java:126)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.main(MainWindow.java:633)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.testing.nhieu.Bootstrapper.main(Bootstrapper.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.reflect.Method.invoke(Method.java:597)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i wasnt able to find much on the internet as to how to fix this problem, im hoping some one out there has encountered this problem before and would like to help another person out. Thanks in advanced for any help or comments that people took time to write. any info will help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 14:49:13 GMT</pubDate>
    <dc:creator>nhieuduong</dc:creator>
    <dc:date>2011-05-31T14:49:13Z</dc:date>
    <item>
      <title>using arcgis engine runtime 10 to run program causes errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcgis-engine-runtime-10-to-run-program/m-p/318168#M8303</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;i am hoping that someone can give some insight as to why runtime is giving me errors when i run my own java written program with arcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the program is bundled in a executable jar file..i go to my terminal in linux(Centos 5) i source the init_engine.sh file and then i run the jar file ("java -jar MainWindow.jar")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i get alot of errors including...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.RuntimeException: Can not use native code: Initialisation failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeObjRef.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.Ocx.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.controls.ToolbarControl.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.beans.toolbar.ToolbarBean.a(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.beans.toolbar.ToolbarBean.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.mapping.Map.&amp;lt;init&amp;gt;(Map.java:349)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.&amp;lt;init&amp;gt;(MainWindow.java:260)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.main(MainWindow.java:634)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.testing.nhieu.Bootstrapper.main(Bootstrapper.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or these errors as well&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException: URI is not hierarchical&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.io.File.&amp;lt;init&amp;gt;(File.java:363)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeLoader.getArcGISHome(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.interop.NativeLoader.loadLibrary(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.math.Compute.initializeArcGISLicenses(Compute.java:126)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.seasimgui.MainWindow.main(MainWindow.java:633)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.aor.testing.nhieu.Bootstrapper.main(Bootstrapper.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.reflect.Method.invoke(Method.java:597)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i wasnt able to find much on the internet as to how to fix this problem, im hoping some one out there has encountered this problem before and would like to help another person out. Thanks in advanced for any help or comments that people took time to write. any info will help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 14:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcgis-engine-runtime-10-to-run-program/m-p/318168#M8303</guid>
      <dc:creator>nhieuduong</dc:creator>
      <dc:date>2011-05-31T14:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: using arcgis engine runtime 10 to run program causes errors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcgis-engine-runtime-10-to-run-program/m-p/318169#M8304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like the license was not properly initialized or a problem with binding to the product.&amp;nbsp; ArcGIS 10 has new binding to the product requirements as well as initializing a license.&amp;nbsp; If you don't do both those things before calls to ArcObjects components you will get initialization errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 11:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-arcgis-engine-runtime-10-to-run-program/m-p/318169#M8304</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-06-01T11:31:21Z</dc:date>
    </item>
  </channel>
</rss>

