# How did you integrate RJB and 3rd party java files into your rails app?

**URL:** <https://www.ruby-forum.com/t/how-did-you-integrate-rjb-and-3rd-party-java-files-into-your-rails-app/133805>\
**Category:** Rails\
**Created:** [April 3, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/how-did-you-integrate-rjb-and-3rd-party-java-files-into-your-rails-app/133805 "2008-04-03T20:58:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scootiepuff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9bcb4/32.png) [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Post date:** [April 3, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/how-did-you-integrate-rjb-and-3rd-party-java-files-into-your-rails-app/133805/1 "2008-04-03T20:58:00Z")

</div>

hello,  
if you have used rjb successfully with your rails app, would you be  
able to kindly post:

-a sample of how you might have included (your choice of syntax for)  
the rjb loading of _multiple_ .jar files in your rails app’s  
environment.rb file?

-an explanation of how/where you might have placed your 3rd party java  
(.jar, .java, etc.) files, perhaps within your rails app’s ‘lib’  
folder?

-the syntax you used in importing the 3rd party .java classes/files  
within your ruby script (that perhaps you placed in the rails app’s  
‘lib’ folder)?

my closely related inquiry at comp.lang.ruby, [http://tinyurl.com/28df7z](http://tinyurl.com/28df7z),  
may also be interesting.

i have been experiencing considerable difficulty integrating the 3rd  
party java files and my ruby scripts that make use of rjb and  
communicates with those 3rd party files into our rails application.  
the application does not seem to understand where these .java classes  
are located, producing 'NoClassDefFoundError’s. i am going back to  
the beginning scrutinizing how i have been using rjb and placing  
relevant code, starting with valid syntax/format for rjb loading and  
importing. i have pored over various online docs and inquired at the  
rubyforge rjb-users forum, but am still not receiving clarifications  
that i am seeking.

please advise.
