{"id":348,"date":"2010-11-10T10:05:45","date_gmt":"2010-11-10T17:05:45","guid":{"rendered":"http:\/\/cknotes.com\/?p=348"},"modified":"2010-11-10T10:06:48","modified_gmt":"2010-11-10T17:06:48","slug":"using-chilkat-for-java-in-eclipse-on-windows","status":"publish","type":"post","link":"https:\/\/cknotes.com\/using-chilkat-for-java-in-eclipse-on-windows\/","title":{"rendered":"Using Chilkat for Java in Eclipse on Windows"},"content":{"rendered":"<p>Here are the steps I followed to use Chilkat&#8217;s Java library in an Eclipse project on Windows:<\/p>\n<ol>\n<li>Open Project-&gt;Properties, select &#8220;Java Build Path&#8221;, click on the &#8220;Add External JARs&#8230;&#8221; button and add the &#8220;chilkat.jar&#8221;<\/li>\n<li>(still within the Project Properties dialog) Click on the &#8220;Run\/Debug Settings&#8221;, select your Java class, then click on the &#8220;Edit&#8230;&#8221; button.\u00a0 Select the &#8220;Arguments&#8221; tab, then add\u00a0 <strong>-Djava.library.path=&#8221;C:\\chilkatJava;${env_var:PATH}&#8221;<\/strong> where &#8220;C:\\chilkatJava&#8221; is the directory path containing the &#8220;chilkat.dll&#8221; file.<\/li>\n<li>The chilkat.dll is loaded at runtime using this code snippet:<\/li>\n<\/ol>\n<pre>\t  static {\r\n\t\t    try {\r\n\t\t        System.loadLibrary(\"chilkat\");\r\n\t\t    } catch (UnsatisfiedLinkError e) {\r\n\t\t      System.err.println(\"Native code library failed to load.\\n\" + e);\r\n\t\t      System.exit(1);\r\n\t\t    }\r\n\t\t  }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here are the steps I followed to use Chilkat&#8217;s Java library in an Eclipse project on Windows: Open Project-&gt;Properties, select &#8220;Java Build Path&#8221;, click on the &#8220;Add External JARs&#8230;&#8221; button and add the &#8220;chilkat.jar&#8221; (still within the Project Properties dialog) Click on the &#8220;Run\/Debug Settings&#8221;, select your Java class, then click on the &#8220;Edit&#8230;&#8221; button.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[430],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-java"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}