Issue Type: Bug Bug
Affects Versions: JRuby 1.7.1, JRuby 1.7.0
Assignee: Thomas E Enebo
Created: 28/Dec/12 4:53 PM
Description:
 % ruby -rjson -e 'JSON.parse("{}")'
ClassLoader.java:-2:in `defineClass1': java.lang.NoClassDefFoundError: json/ext/ByteListTranscoder
...

The error above is a new problem to me. I've been using JRuby 1.7.0 for a long time and have only seen this just now.

This occurs regardless of whether or not the 'json' gem is installed (jruby w/ ruby 1.9 comes with json, anyway, right?)

Stracing the process, I see it successfully find the json's parser.jar which indeed includes json/ext/ByteListEncoder.class. I don't know why it cannot find the class.

Example:

% jar tf /home/jls/.rvm/gems/jruby-1.7.1/gems/json-1.7.5-java/lib/json/ext/parser.jar | grep Byte
json/ext/ByteListTranscoder.class

This failure occurs in 1.7.0 and 1.7.1 for me, and only on this one machine. I have no idea what the problem is. I have done 'rvm reinstall 1.7.1' to try and reinstall a fresh jruby 1.7.1, but it does not fix it.

Environment: fedora 17
rvm 1.17.2
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.3.fc17.1-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to