Forum: Ruby rjb and Java 1.5

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Adam K. (Guest)
on 2006-03-10 02:18
(Received via mailing list)
I'm trying to use rjb[1] to talk to some Java code compiled with Java
1.5 on OS X.  I can run simple examples that only use Sun's code just
fine, but when I try to run our code (compiled from within Eclipse,
if that matters), I'm getting the following error when I attempt to
import one of our classes:

(Unsupported major.minor version 49.0) (UnsupportedClassVersionError)

I verified that I built the RJB extension with the 1.5 headers, my
JAVA_HOME variable points to the Java 1.5 installation and when I run
java from the command line, it is Java 1.5.  But the error I'm
getting looks like somehow Java 1.4 is getting dragged into the picture.

Anyone seen this error or have an idea how I might eliminate it?


This topic is locked and can not be replied to.