Synopses & Reviews
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.
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.
"Using JRuby" helps experienced Java hands and Rubyists see what's on the other side of the fence--and bring the best of Ruby to the broad universe of Java environments.
With JRuby, you can:
" Run your interpreted or compiled Ruby program in environments where the Java Virtual Machine is a requirement. " Treat JRuby as a "better Ruby," with faster performance for some uses and hassle-free linkage to third-party code. " Make your Java program scriptable with Ruby. " Build an app on solid libraries written in Java, Scala, Clojure, or other JVM languages.
You'll learn how to call Java code from Ruby, and vice versa. You'll gain first-hand experience with dozens of JRuby's most common uses, from running web sites to building GUIs. And you'll see how it's all put together under the hood.
JRuby lets you merge the best of several possible worlds, so you can create unique software using the best tools available.
About the Author
Charles O Nutter is the principal developer of JRuby. He has worked at Ventera, Sun, and now, EngineYard. During his time on the project, he has steered JRuby to its place as the fastest Ruby implementation.
Thomas Enebo has striven since 2003 to make JRuby a piece of software that will capture the hearts and minds of Ruby and Java developers everywhere. He works at EngineYard alongside Charles and Nick.
Nick Sieger is a prolific blogger and programmer who contributes not only to the JRuby core, but also to numerous libraries that Ruby programmers depend on every day in their work with JRuby. He works at EngineYard.
Ola Bini writes software at Thoughtworks Studios, and is the author of Practical JRuby on Rails. He is constantly pushing the boundaries between programming languages.
Ian Dees is the author of Scripted GUI Testing With Ruby. By day, he slings C++, Ruby, LabVIEW, and other languages for a test equipment manufacturer in Portland, Oregon.