{"id":23,"date":"2008-04-15T00:35:02","date_gmt":"2008-04-15T00:35:02","guid":{"rendered":"http:\/\/59.106.179.184\/en\/blog\/?p=23"},"modified":"2008-04-15T00:35:02","modified_gmt":"2008-04-15T00:35:02","slug":"java%e3%81%8b%e3%82%89jruby%e3%82%92%e5%ae%9f%e8%a1%8c-%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%81%8c%e4%bd%bf%e3%81%88%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/blog.tmyymmt.net\/en\/?p=23","title":{"rendered":"Java\u304b\u3089JRuby\u3092\u5b9f\u884c \u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u3048\u306a\u3044"},"content":{"rendered":"<p>Java 6\u3002JRuby 1.1\u3002jsr223-engines<br \/>\n2008\u5e744\u670812\u65e5\u7248\u3002<\/p>\n<p>\nJRuby\u306eruby\u30b9\u30af\u30ea\u30d7\u30c8\u3067 require &#39;csv&#39; \u3068\u3057\u3066\u3044\u308b\u5834\u5408\u3002jruby\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308c\u3070\u554f\u984c\u306a\u3044\u304c\u3001<br \/>Java\u304b\u3089<a href=\"https:\/\/scripting.dev.java.net\/\">scripting<\/a>\u3092\u4f7f\u7528\u3057\u3066JRuby\u3067ruby\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306f\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u4f7f\u3048\u306a\u3044\u3002<\/p>\n<blockquote>\n<p>javax.script.ScriptException: org.jruby.exceptions.RaiseException: no such file to load &#8212; csv <\/p>\n<\/blockquote>\n<p>\u89e3\u6c7a\u65b9\u6cd5<br \/>1. <a href=\"https:\/\/scripting.dev.java.net\/servlets\/ProjectDocumentList\">\u3053\u3053<\/a>\u304b\u3089 jsr223-engines.zip \u3092\u53d6\u3063\u3066\u304d\u3066classpath\u306b\u8ffd\u52a0<br \/>2. <a href=\"http:\/\/jruby.codehaus.org\/\">\u3053\u3053<\/a>\u306e\u30ea\u30f3\u30af\u306e<a href=\"http:\/\/dist.codehaus.org\/jruby\/\">\u3053\u3053<\/a>\u304b\u3089 jruby-src-1.1.tar.gz \u3092\u53d6\u3063\u3066\u304d\u3066\u3001ant jar-complete \u3067 jruby-complete.jar \u3092\u751f\u6210\u3001JRuby\u306e jruby.jar \u3068\u7f6e\u304d\u63db\u3048\u308b\u3002<\/p>\n<p>\u53c2\u8003\u306b\u3057\u305f\u306e\u306f<a href=\"http:\/\/diary.lampetty.net\/20050110.html#p02\">\u3053\u3053<\/a>\u3002\u3061\u306a\u307f\u306b\u4ee5\u4e0b\u306e\u30c8\u30e9\u30a4\u3067\u306f\u89e3\u6c7a\u3067\u304d\u306a\u304b\u3063\u305f\u3002<\/p>\n<blockquote>\n<p>-I D:\\java\\jruby-1.1\\lib\\ruby\\1.8 use_csv.rb<br \/>-Dcom.sun.script.jruby.loadpath=D:\\java\\jruby-1.1\\lib\\jruby.jar<br \/>String loadPath = &quot;D:\\\\java\\\\jruby-1.1;D:\\\\java\\\\jruby-1.1\\\\lib\\\\ruby\\\\1.8&quot;;<br \/>System.setProperty(&quot;com.sun.script.jruby.loadpath&quot;, &quot;ruby\/1.8&quot; + loadPath)<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Java 6\u3002JRuby 1.1\u3002jsr223-engines 2008\u5e744\u670812\u65e5\u7248\u3002 JRuby\u306eruby\u30b9\u30af\u30ea\u30d7\u30c8\u3067 require &#39;csv&#39; \u3068\u3057\u3066\u3044\u308b\u5834\u5408\u3002jruby\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308c\u3070\u554f\u984c\u306a\u3044\u304c\u3001Java\u304b\u3089scripting\u3092\u4f7f\u7528\u3057\u3066JRuby\u3067ruby\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306f\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u4f7f\u3048\u306a\u3044\u3002 javax.script.ScriptException: org.jruby.exceptions.RaiseException: no such file to load &#8212; csv \u89e3\u6c7a\u65b9\u6cd51. \u3053\u3053\u304b\u3089 jsr223-engines.zip \u3092\u53d6\u3063\u3066\u304d\u3066classpath\u306b\u8ffd\u52a02. \u3053\u3053\u306e\u30ea\u30f3\u30af\u306e\u3053\u3053\u304b\u3089 jruby-src-1.1.tar.gz \u3092\u53d6\u3063\u3066\u304d\u3066\u3001ant jar-complete \u3067 jruby-complete.jar \u3092\u751f\u6210\u3001JRuby\u306e jruby.jar \u3068\u7f6e\u304d\u63db\u3048\u308b\u3002 \u53c2\u8003\u306b\u3057\u305f\u306e\u306f\u3053\u3053\u3002\u3061\u306a\u307f\u306b\u4ee5\u4e0b\u306e\u30c8\u30e9\u30a4\u3067\u306f\u89e3\u6c7a\u3067\u304d\u306a\u304b\u3063\u305f\u3002 -I D:\\java\\jruby-1.1\\lib\\ruby\\1.8 use_csv.rb-Dcom.sun.script.jruby.loadpath=D:\\java\\jruby-1.1\\lib\\jruby.jarString loadPath = &quot;D:\\\\java\\\\jruby-1.1;D:\\\\java\\\\jruby-1.1\\\\lib\\\\ruby\\\\1.8&quot;;System.setProperty(&quot;com.sun.script.jruby.loadpath&quot;, &quot;ruby\/1.8&quot; + loadPath)<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[19,20,21,18,17],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-jruby","tag-jscript-gine","tag-jsr223","tag-programing","tag-va"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2SiSL-n","_links":{"self":[{"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tmyymmt.net\/en\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}