{"id":489,"date":"2015-09-09T17:51:26","date_gmt":"2015-09-09T16:51:26","guid":{"rendered":"http:\/\/www.sebcharrot.com\/blog\/?p=489"},"modified":"2015-09-09T17:51:26","modified_gmt":"2015-09-09T16:51:26","slug":"of-ants-and-rhinos","status":"publish","type":"post","link":"http:\/\/www.sebcharrot.com\/blog\/of-ants-and-rhinos\/","title":{"rendered":"Of Ants and Rhinos"},"content":{"rendered":"<p>I recently opened a Pandora&#8217;s box when investigating incorporating LESS into a web project I&#8217;ve been working on.\u00a0Long story short, I found myself having to compile Rhino into a jar I could execute.<\/p>\n<p>Having installed Ant to perform the task, I ran the command and got the following exception:<\/p>\n<pre style=\"padding-left: 30px;\">C:\\rhino1_7R5\\xmlimplsrc\\build.xml:129: src 'C:\\rhino1_7R5\\build\\tmp-xbean\\xbean.zip' doesn't exist.<\/pre>\n<p>Which is exactly what I want to be dealing with when investigating a CSS precompiler.<\/p>\n<p>In any case I got to the bottom of the issue. So without further ado, here is&#8230;<\/p>\n<h2>The definitive list of steps for compiling Rhino<\/h2>\n<ol>\n<li>Download the source\u00a0from <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Projects\/Rhino\/Download_Rhino\" target=\"_blank\" rel=\"noopener noreferrer\">Rhino&#8217;s website<\/a><\/li>\n<li>Unzip it somewhere (let&#8217;s say, C:\\rhino1_7R5&#8243;)<\/li>\n<li>Download Ant (if you don&#8217;t already have it) from <a href=\"https:\/\/www.apache.org\/dist\/ant\/\" target=\"_blank\" rel=\"noopener noreferrer\">Apache&#8217;s website<\/a><\/li>\n<li>Install Ant (<a href=\"http:\/\/ant.apache.org\/manual\/install.html#installing\" target=\"_blank\" rel=\"noopener noreferrer\">instructions here<\/a>)<\/li>\n<li>Download the zip from the following URL:\u00a0<a href=\"http:\/\/archive.apache.org\/dist\/xmlbeans\/binaries\/xmlbeans-2.5.0.zip\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/archive.apache.org\/dist\/xmlbeans\/binaries\/xmlbeans-2.5.0.zip<\/a><\/li>\n<li>Create a folder in C:\\rhino1_7R5\\build\\&#8221; called &#8220;tmp-xbean&#8221;<\/li>\n<li>Paste the zip from step 5 into this folder and rename it to &#8220;xbean.zip&#8221;<\/li>\n<li>Open a command prompt in C:\\rhino1_7R5<\/li>\n<li>Run the command &#8220;ant jar&#8221;<\/li>\n<\/ol>\n<p>For those interested, I worked this out by taking a look in the Ant build file for &#8220;xmlimplsrc&#8221;, which was the root of the error. This build XML file actually contains the location of the zip file which it&#8217;s failing to find. My guess is that it attempts to download it (install instructions are very unclear about the fact that they require an internet connection) and when that fails, your build fails. In my case it&#8217;s most likely due to my company network&#8217;s\u00a0proxy\u00a0restrictions.<\/p>\n<p>I hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently opened a Pandora&#8217;s box when investigating incorporating LESS into a web project I&#8217;ve been working on.\u00a0Long story short, I found myself having to compile Rhino into a jar I could execute. Having installed Ant to perform the task, I ran the command and got the following exception: C:\\rhino1_7R5\\xmlimplsrc\\build.xml:129: src &#8216;C:\\rhino1_7R5\\build\\tmp-xbean\\xbean.zip&#8217; doesn&#8217;t exist. Which&hellip;&nbsp;<a href=\"http:\/\/www.sebcharrot.com\/blog\/of-ants-and-rhinos\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Of Ants and Rhinos<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[23,15,18],"tags":[30,31,110,149,189],"_links":{"self":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/489"}],"collection":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/comments?post=489"}],"version-history":[{"count":0,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}