# Rjb and Java 1.5

**URL:** <https://www.ruby-forum.com/t/rjb-and-java-1-5/54615>\
**Category:** Ruby\
**Created:** [March 10, 2006, 1:18am UTC](https://www.ruby-forum.com/t/rjb-and-java-1-5/54615 "2006-03-10T01:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![therealadam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@therealadam](https://www.ruby-forum.com/u/therealadam)\
**Post date:** [March 10, 2006, 1:18am UTC](https://www.ruby-forum.com/t/rjb-and-java-1-5/54615/1 "2006-03-10T01:18:57Z")

</div>

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?

[1] [http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge](http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge)

Thanks,
