Nick Sieger: JRuby 1.0.3: No Java-based extension library backward compatibility http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc en-us 40 "JRuby 1.0.3: No Java-based extension library backward compatibility" by Nick <p>Shahfazliz, Kaj: looks like your problem has been tracked here too: <a href='http://jira.codehaus.org/browse/JRUBY-1861' rel="nofollow">JRUBY&#45;1861</a>&#46; Please follow the updates there&#46;</p> <p>Christian: no, not really :)&#46; Despite the lack of mention of 1&#46;4 on the jruby&#45;extras page, the latest should be 1&#46;4&#46; Check and see the name of the goldspike jar file that gets installed when you create the war&#46;</p> Wed, 02 Jan 2008 17:36:49 +0000 urn:uuid:08a250bd-5c64-4118-9020-28aa969d042d http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc#comment-360 "JRuby 1.0.3: No Java-based extension library backward compatibility" by Kaj Hejer <p>Hi! </p> <p>Did you solve your &#8220;private method&#46;&#46;&#46;&#8221; error?</p> <p>I have this issue too and filed a report about this, see <a href='http://tinyurl' rel="nofollow">http://tinyurl</a>&#46;com/285ph4</p> <p>&#45;Kaj :)</p> Mon, 31 Dec 2007 23:57:21 +0000 urn:uuid:d5e40897-0426-4eae-9467-9cc0a8c11a8c http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc#comment-359 "JRuby 1.0.3: No Java-based extension library backward compatibility" by Shahfazliz Shahron when i ran &#8220;jruby &#45;S rake war:standalone:create&#8221; i get this error&#46;&#46; rake aborted! private method `makedirs&#8217; called for File:Class is it because i&#8217;m using Goldspike 1&#46;3? i&#8217;m using jruby 1&#46;0&#46;3 and i used the following command to install goldspike &#8220;jruby script/plugin install <a href='http://jruby' rel="nofollow">http://jruby</a>&#45;extras&#46;rubyforge&#46;org/svn/trunk/rails&#45;integration/plugins/goldspike&#8221; Fri, 28 Dec 2007 09:17:38 +0000 urn:uuid:56da8ae5-b7e9-4a7d-8cd5-e139a547d4a9 http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc#comment-358 "JRuby 1.0.3: No Java-based extension library backward compatibility" by Christian Seiler <p>Is there an official homepage of Goldspike? The latest version on <a href='http://rubyforge' rel="nofollow">http://rubyforge</a>&#46;org/projects/jruby&#45;extras is still 1&#46;3 </p> Fri, 21 Dec 2007 11:31:45 +0000 urn:uuid:557ef503-9b9e-4b81-8b9b-5729e34f922f http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc#comment-357 JRuby 1.0.3: No Java-based extension library backward compatibility <p><a href="http://docs.codehaus.org/display/JRUBY/2007/12/15/JRuby+1.0.3+Released">JRuby 1&#46;0&#46;3 just came out</a> a couple of days ago&#46; It was a decent point release; a <a href="http://jira.codehaus.org/browse/JRUBY/fixforversion/13811">handful of good bugs</a> fixed&#46; Normally a 1&#46;0&#46;3 release would not be all that exciting, but during this cycle, trunk&#8217;s internal API (upon which several JRuby extensions depend) started to diverge&#46; Unfortunately, this forced us to face a decision: either fork and maintain two versions of every extension (one for 1&#46;0&#46;x and one for 1&#46;1 and beyond), or break backwards compatibility&#46;</p> <p>We ended up choosing the latter, prefering a single schism to parallel version hell&#46; It&#8217;s probably going to cause some pain for us (in number of support inquiries), and especially for those who might be looking casually at JRuby and trying it for the first time, for example via <a href="http://ruby.netbeans.org/">NetBeans</a>&#46; NetBeans 6&#46;0 recently shipped with JRuby 1&#46;0&#46;2, which is now incompatible with the latest versions of several high&#45;demand gems&#46; Look for the <a href="http://bits.netbeans.org/download/trunk/nightly/">6&#46;1 nightly builds</a> to be fixed soon, and hopefully the 6&#46;0&#46;1 update can include the new release as well&#46; (If you&#8217;re using NetBeans 6 and have run into this problem, you can download and unpack JRuby 1&#46;0&#46;3 and <a href="http://www.netbeans.org/kb/60/ruby/setting-up.html">show NetBeans where it is</a>&#46;)</p> <p>So when in doubt, <strong>grab the <a href="http://wiki.jruby.org/wiki/Main_Page#Downloads">most recent JRuby release</a> possible to minimize compatibility issues</strong>&#46; To attempt to be as clear as possible about which versions work with what, I&#8217;ve included a table below&#46; I&#8217;ll fill in with updates as I receive them, and let me know if a piece of software you use isn&#8217;t mentioned, but should be&#46;</p> <p><style type="text/css"> table#vers { border&#45;color: #999; border&#45;width: 0 0 1px 1px; border&#45;style: solid; margin: 0px auto; width: 80%; } table#vers th, table#vers td { border&#45;color: #999; border&#45;width: 1px 1px 0 0; border&#45;style: solid; margin: 0px; padding: 4px; } </style></p> <table id="vers" summary=""> <thead> <th>&nbsp;</th><th colspan="2">JRuby Version</th> </thead> <tbody> <tr> <td>&nbsp;</td><td>1&#46;0 &#45; 1&#46;0&#46;2, 1&#46;1b1</td><td> 1&#46;0&#46;3, 1&#46;1b2</td> </tr> <tr> <td><strong>Library</strong></td><td colspan="2">&nbsp;</td> </tr> <tr> <td>rubygems</td><td>&lt;= 0&#46;9&#46;4</td><td>&lt;= 0&#46;9&#46;4, = 1&#46;0 *</td> </tr> <tr> <td>rails</td><td>&lt;= 1&#46;2&#46;6,<br/>&gt;= 2&#46;0&#46;x &dagger;</td><td>any</td> </tr> <tr> <td>activerecord&#45;jdbc</td><td>&lt;= 0&#46;6</td><td>&gt;= 0&#46;7</td> </tr> <tr> <td>jruby&#45;openssl</td><td>&lt;= 0&#46;0&#46;5</td><td>&gt;= 0&#46;1</td> </tr> <tr> <td>goldspike</td><td>1&#46;3</td><td>1&#46;4</td> </tr> <tr> <td>mongrel</td><td>any &Dagger;</td><td>1&#46;1&#46;2</td> </tr> </tbody> </table> <p>* Rubygems 0&#46;9&#46;5 may not be compatible with any JRuby version; we won&#8217;t ship it with a release<br/> &dagger; requires jruby&#45;openssl (0&#46;0&#46;5 or earlier) to be installed<br/> &Dagger; combination needs testing with JRuby 1&#46;0&#46;2 and Mongrel 1&#46;1&#46;2</p> <p>Other libraries not mentioned here, such as <a href="http://ola-bini.blogspot.com/search/label/javasand" title="Ola Bini on Java, Lisp, Ruby and AI: javasand">javasand</a> (JRuby version of <a href="http://code.whytheluckystiff.net/sandbox/" title="The Freaky Freaky Sandbox: clone and gut Ruby itself!">freaky freaky sandbox</a>) or <a href="http://rubyforge.org/projects/jruby-extras/" title="RubyForge: A nursery for JRuby extras: Project Info">jparsetree</a> (JRuby version of <a href="http://rubyforge.org/projects/parsetree/" title="RubyForge: ParseTree - ruby parse tree tools: Project Info">ParseTree</a>) will also likely need updating for 1&#46;0&#46;3 and 1&#46;1&#46; For library authors needing a hint for which way to go, <a href="http://fisheye.codehaus.org/browse/jruby/trunk/jruby/src/org/jruby/javasupport/JavaEmbedUtils.java?r=root:#l65">here</a> are <a href="http://fisheye.codehaus.org/browse/jruby/trunk/jruby/src/org/jruby/RubyObjectAdapter.java?r=root:">some</a> <a href="http://fisheye.codehaus.org/browse/jruby/trunk/jruby/src/org/jruby/RubyRuntimeAdapter.java?r=root:">pointers</a> to our temporary bridge API&#46;</p> <p>Lessons learned? An extension API and migration strategy might be normally be a good thing to nail down before a 1&#46;0 release&#46; Hopefully, you&#8217;ll forgive us that blunder this one time, and we&#8217;ll make sure to get this mess cleaned up in a future 1&#46;x release, and any pains you had to go through with version incompatibilities will be soothed by the continual high&#45;quality releases we&#8217;ve been able to craft&#46;</p> Wed, 19 Dec 2007 04:14:00 +0000 urn:uuid:b01831fd-1ccc-4898-a939-add1f8c74d9d Nick Sieger http://blog.nicksieger.com/articles/2007/12/19/jruby-1-0-3-no-bc jruby http://blog.nicksieger.com/articles/trackback/356