# Usin JRuby within a Rails project

**URL:** <https://www.ruby-forum.com/t/usin-jruby-within-a-rails-project/119033>\
**Category:** Rails\
**Created:** [November 2, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/usin-jruby-within-a-rails-project/119033 "2007-11-02T12:05:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicksnels](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Post date:** [November 2, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/usin-jruby-within-a-rails-project/119033/1 "2007-11-02T12:05:22Z")

</div>

Hi,

I’m using JRuby to talk to iText a Java library. I have got it working  
in a small Ruby project. Now I would like to integrate this in an  
existing Ruby on Rails project. So I have added the code from my Ruby  
file into one of my ROR files and it doesn’t work. How can I talk to  
Java without having to run ROR on top of JRuby? Is this possible with  
JRuby or do I need to look elsewhere, like RJB for example?

Kind regards,

Nick
