Want to receive a weekly email containing
the scoop on our new titles along with the
occasional special offer? Just click the button.
(You can always unsubscribe later by editing your
account information).

Give us an email and a password (you can use the password later to log in and
change your preferences). We'll send you a newsletter roughly once a week.

Using JRuby: Bringing Ruby to Java

The chart shows the approximate number of words in each chapter of Using JRuby per week. The latest numbers are highlighted—mouse over prior weeks to see their figures.

Now you can bring the best of Ruby into the world of Java, with Using JRuby. Come to the source for the JRuby core team’s insights and insider tips. You’ll learn how to call Java objects seamlessly from Ruby, and deal with Java idioms such as interfaces and overloaded functions. Run Ruby code from Java, and make a Java program scriptable in Ruby. See how to compile Ruby into .class files that are callable from Java, Scala, Clojure, or any other JVM language.

Out of Print

This book is currently out of print.

About this Book

300 pages

Published: 2011-01-28

Release: P1.0 (2011-01-26)

ISBN: 978-1-93435-665-4

In Using JRuby you’ll venture into the wide world of open-source Ruby and Java libraries. Write Ruby on Rails web applications that run on Java servers like Tomcat. Use Java’s JDBC or Hibernate to easily connect Ruby to industry-standard databases. Test your Java program using Ruby’s elegant Cucumber and RSpec frameworks. Create dazzling desktop user interfaces with frameworks like Limelight and Monkeybars. Package a Rails or plain Ruby project for easy deployment to any Java environment.

JRuby lets you merge the best of several possible worlds, so you can create unique software using the best tools available. This book is your definitive guide.

Comments and Reviews

This book is an excellent resource for JRuby and will without a doubt facilitate JRuby adoption in Java-centric enterprises.

—Bharat RuparelSenior information architectAmerica's Test Kitchen

This book makes a compelling case for JRuby. A must-have to bring some Ruby goodness to your Java powerhouse.

—Fred DaoudAuthor, "Stripes...and Java Web Development Is Fun Again," and "Getting Started with Apache Click"

This is one of those books that you don’t want to put down and you can’t wait to get back to. For a technical publication, that is extremely rare. After reading this book, I can say I have a very good understanding of what JRuby is, how it interacts with Java, and a working knowledge of many of the supporting tools to accomplish a wide range of tasks. The way this book is organized, it makes a great reference for future development.

—Gale StraneySenior software design engineerTektronix

This book will open the eyes of any Java programmer who wants to take their art to the next level. Read it.

—Geoff DrakeOwnerManaged Design

I really liked the clear structure of the book and all the covered libraries/dependencies (like Rake, Ant, Maven, testing frameworks). This clearly outlines the whole JRuby universe so that new users will immediately see what’s available and how to start using it.

—Vladimir SizikovSenior EngineerOracle

My JRuby apps will go live in two weeks. Without your book and the Ruby community, I would never have gotten this far.

—Pinit Asavanuchit Intersol Consulting Co., Ltd.

I was floored by the amount of technical detail the authors managed to cram in here! And they did it with such an approachable and readable tone that this book was both easy and fun to read. I can’t remember
the last technical book that did that for me. The breadth of coverage is astounding, too.

—Kent R. Spillner

I was very happy to discover the JRuby project, my favorite programming language running on what’s probably the best virtual machine in the world. This book really covers every in and out of this fantastic project.