{"id":3897,"date":"2014-03-30T06:17:49","date_gmt":"2014-03-30T06:17:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/should-i-try-to-reuse-ruby-code-in-a-java-project-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:17:49","modified_gmt":"2014-03-30T06:17:49","slug":"should-i-try-to-reuse-ruby-code-in-a-java-project-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/should-i-try-to-reuse-ruby-code-in-a-java-project-collection-of-common-programming-errors\/","title":{"rendered":"Should I try to reuse Ruby code in a Java project?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;d rather not &#8220;reinvent the wheel&#8221; and I&#8217;ve found a Ruby project that provides functionality I need in my Java app (there is no preexisting Java project that does what I need &#8211; trust me, I&#8217;ve looked). So, best case scenario, I am able to run the Ruby code from my Java code (ala JSR223).<\/p>\n<p>However, this Ruby project depends on having several gems installed. I&#8217;m not at all interested in converting the entire Java app into a JRuby app, but I&#8217;d like to be able to leverage this project. Is there an easy way to load the code from a gem into a ScriptEngine, or am I just asking for headaches?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d rather not &#8220;reinvent the wheel&#8221; and I&#8217;ve found a Ruby project that provides functionality I need in my Java app (there is no preexisting Java project that does what I need &#8211; trust me, I&#8217;ve looked). So, best case scenario, I am able to run the Ruby code from my Java code (ala JSR223). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3897","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3897"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3897\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}