When I try to execute “gem install rails” on a new installed jruby I got
the following error:
System.java:-2:in `arraycopy’: java.lang.ArrayIndexOutOfBoundsException
I have tried to run the command on different machines with ubuntu 10.10
and centos 5.5. always with the same result.
just ran into that myself yesterday with rspec-1.3.2 but was able to
fix the version on 1.3.1 which worked. and there is another thread
earlier today in that mailing list. the related bug is:
http://jira.codehaus.org/browse/JRUBY-5581
maybe you are able to use jruby-head until a jruby-1.6.2 gets released.
regards,
Kristian
If you’re unable to use jruby-head another temporary workaround is to
‘gem install arel-2.0.9’ before installing rails 3.
sorry, ‘gem install arel -v=2.0.9’
fzippo
May 21, 2011, 12:07pm
5
Thanks a lot, fixed the problem