Start reading JRuby Cookbook on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


JRuby Cookbook [Kindle Edition]

Justin Edelson , Henry Liu
3.5 out of 5 stars  See all reviews (4 customer reviews)

Digital List Price: $27.99 What's this?
Print List Price: $34.99
Kindle Price: $15.39
You Save: $19.60 (56%)

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your email address or mobile phone number.


Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $26.17  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

If you're interested in JRuby, you probably don't need a turorial on Ruby, Rails, or Java -- you just need to know how to get things done. This Cookbook offers practical solutions for using the Java implementation of the Ruby language, with targeted recipes for deploying Rails web applications on Java servers, integrating JRuby code with Java technologies, developing JRuby desktop applications with Java toolkits, and more. Using numerous reusable code samples, JRuby Cookbook shows you how to:

  • Install and update JRuby on Windows, Mac OS X, and Linux, and IDEs such as NetBeans and Eclipse
  • Package and deploy Rails apps on Java Servlet containers and Java EE application servers, including JBoss, Tomcat, and GlassFish
  • Integrate Ruby and Rails applications with popular Java EE technologies such as JMS, JMX, JPA, Spring, and Hibernate
  • Develop desktop and client applications with cross-platform Java UI technologies and toolkits such as Swing, SWT, and Java 2D
  • Maximize the flexibility of your testing and build environment, using both existing Java-based tools such as Ant and Maven and newer Ruby-based tools such as Rake, Raven, and Buildr

The JRuby interpreter combines Ruby's simplicity and ease of use with Java's extensive libraries and technologies, a potent blend that opens new possibilities for Ruby, Rails, and Java. This Cookbook helps you take full advantage of JRuby's potential.

"The JRuby Cookbook is an excellent book for any polyglot who is trying to bridge the gap between Java and Ruby. It provides solutions to specific problems developers face in both their development and testing environments, along with the applications they're building."-- Bob McWhirter, Research & Prototyping, Red Hat Middleware

Editorial Reviews

About the Author

Justin Edelson is the Vice President of Platform Engineering for MTV Networks. He was the co-author (with Brett McLaughlin) of Java & XML, 3rd Edition, published in December 2006.

Henry Liu is an experienced software developer and game designer. He is currently a Senior Software Developer at MTV Networks. He maintains an Open Source Ruby project for collaborative filtering named slopeone-gem and is an active member of the New York City Ruby Users Group.

Product Details

  • File Size: 1097 KB
  • Print Length: 224 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (November 7, 2008)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0026OR2N6
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #946,870 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

3.5 out of 5 stars
3.5 out of 5 stars
Share your thoughts with other customers
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Finally an advanced book on JRuby December 16, 2008
Having heard about this book several months before its publication, I was very happy to find that it had exceeded my expectations. As a Java developer very interested in Ruby, I was somewhat surprised at the lack of printed documentation on JRuby. I found this book to be very up-to-date, practical, and easy to follow, with examples that I could immediately apply. Particularly useful for me were the sections on setting up your environment with JRuby, Rails, and your preferred IDE, as well as deploying rails with various application servers. The instructions for all the main app servers on the market were extremely clear, and I was able to get things up and running in very short order. Also, I found the chapter on Enterprise Java integration to be especially useful, as it provided specific recipes for using JNDI, JMS, integration with Spring and Hibernate frameworks. I would highly recommend this book for any JRuby enthusiasts out there, looking for a solid and comprehensive springboard into the technology.
Thank you Justin and Henry!
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
2.0 out of 5 stars Out of date May 11, 2013
Format:Paperback|Verified Purchase
The book is very slim, has some good information, but is out of date. Most of the info is on the various jruby web sites. Buy another book like Charles Nutter's Using JRuby.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars a great start, but now I want more September 12, 2009
O'Reilly's Cookbook series is well known for providing short, pithy instructions for solving practical real-world issues in a well-organized recipe format. The JRuby Cookbook upholds that tradition, and I've found it a particularly invaluable source for help on JRuby-specific topics like integrating your JRuby code with legacy Java libraries or with services like JMS and JNDI. Clear, well-written JRuby-specific docs can be hard to come by on the web, so this book was a real life-saver for me. I frequently found myself wanting more though. The present edition is a great start, but those are big and complex topics, and more recipes, with more example code, would make it even better. So I'm appreciating the current edition, and at the same time hoping there will be a second, expanded one soon.
Comment | 
Was this review helpful to you?
1 of 3 people found the following review helpful
2.0 out of 5 stars Fairly useless April 17, 2011
Format:Paperback|Verified Purchase
This book has a weird target audience. It's too advanced for people from beginning to intermediate, giving too little explanation to the recipes presented. The advanced user that would understand what's going on, would have no need for a book like this. The recipes are too basic to be of much use to a really advanced user and would be just as hard to figure out on your own as with this book.
Additionally this book has a huge Java-developer bias, so a person approaching it from the Ruby side will be lost most of the time.
I found the cursory explanations to the recipes fairly useless. Nothing more than the barest glimpse and then it's done. A thin volume, this book has no excuse for its lack of content.
Comment | 
Was this review helpful to you?
Search Customer Reviews
Search these reviews only

More About the Author

Discover books, learn about writers, read author blogs, and more.


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category