Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby 1.7.6 / ARM / Raspberry PI / Raspbian / OpenJDK ArgumentError #1188

Closed
jhstatewide opened this issue Oct 30, 2013 · 4 comments
Closed

Comments

@jhstatewide
Copy link

Testing out JRuby 1.7.6 on Raspberry pi. Even simple test programs fail to execute:

root@raspberrypi:~# jruby -v
jruby 1.7.6 (1.9.3p392) 2013-10-22 6004147 on OpenJDK Zero VM 1.7.0_25-b30 [linux-arm]

root@raspberrypi:~# cat hello.rb
puts "hello world"

root@raspberrypi:~# jruby hello.rb
ArgumentError: cannot import class java.lang.reflect.Modifier' asModifier'
java_import at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/core_ext/object.rb:63
map at org/jruby/RubyArray.java:2413
java_import at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/core_ext/object.rb:22
ModifierShortcuts at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/java_ext/java.lang.rb:73
(root) at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/java_ext/java.lang.rb:72
require at org/jruby/RubyKernel.java:1082
(root) at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/java_ext.rb:1
require at org/jruby/RubyKernel.java:1082
(root) at file:/usr/local/rvm/rubies/jruby-1.7.6/lib/jruby.jar!/jruby/java/java_ext.rb:3

@headius
Copy link
Member

headius commented Oct 30, 2013

Our embedded GSoC student ran into this too. There's something peculiar about how the strings are encoded/decoded on some builds of OpenJDK (seems like the IcedTea builds) for ARM that causes this logic to fail. It basically does a regexp match of the "Modifier" name and doesn't match inside core/src/main/ruby/jruby/java/core_ext/object.rb.

That's all I have to go on at the moment.

I believe this is a bug in the IcedTea builds, but I have not been able to sort out what exactly is wrong.

@masterdoed
Copy link

Hi ...

did you find a solution for this?

thx

@enebo
Copy link
Member

enebo commented May 30, 2014

I had no issues about 2 months ago running JRuby on Raspian and my Raspberry pi other than jnr-posix not loading correctly (which did not prevent jruby from running -- e.g. different issue). I wonder if a later openjdk release fixes this?

@enebo enebo added this to the Invalid or Duplicate milestone May 11, 2016
@enebo
Copy link
Member

enebo commented May 11, 2016

Due to length of time with no more information and my last comment where I was able to run JRuby (with jffi unpackaging workarounds) I am closing. Please re-open if this is still an issue.

@enebo enebo closed this as completed May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants