InfoQ

News

Indispensable Tips on Using Java Classes in JRuby

Posted by Shane Witbeck on Sep 19, 2007 10:06 PM

Community
Java
Topics
JRuby,
Programming
Tags
Java SE,
JRuby
Eric Armstrong, a Document Systems Architect at Sun Microsystems, recently wrote some great tips on calling Java code from JRuby in his post "Using Java Classes in JRuby". In his personal notes which he composed from his own research and experimentation, he describes several tips on the following topics:

  • The proper way to include Java in JRuby.
  • Including class names and referencing them.
  • Accessing external (or third party) classes including how to add them to the classpath.
  • Implementing Java interfaces in JRuby.

As JRuby matures into a viable technology it's sometimes hard to find information and tips about how to use it effectively. One of JRuby's committers, Charles Nutter, eluded to one reason why there still isn't formal information about JRuby by saying "Good authors do not have time to be good developers."

As documentation and best practices matures along with new technologies such as JRuby, tips from members of the community are indispensable.

No comments

Reply

Exclusive Content

Typemock: Past, Present and Future

Eli Lopian of Typemock answers a few questions on Typemock origins and where Typemock is headed.

Agile in Practice: What Is Actually Going On Out There?

Scott Ambler talks about actual data resulting from surveys made during 2006-2008, showing how Agile is perceived and implemented within organizations.

Building Smart Windows Applications

From QCon 2008, Daniel Moth presents on using Visual Studio 2008 and .NET 3.5 to create compelling rich Windows applications.

Joshua Kerievsky about Industrial XP

Joshua Kerievsky, founder of Industrial Logic, talks about Industrial Extreme Programming which extends XP by including practices dealing with management, customers and developers.

Jeff Barr Discusses Amazon Web Services

Amazon Web Services (AWS) Evangelist Jeff Barr discusses SimpleDB, S3, EC2, SQS, cloud computing, how different Amazon services interact, origins of AWS, AWS globalization and the March AWS outage.

More Than Just Spin (Up) : Virtualization for the Enterprise and SaaS

Cloud services have helped bring virtualization to the forefront. Its full power however, also includes other benefits such as high availability, disaster recovery, and rapid provisioning.

Ruby Beyond Rails

John Lam talks about his path to dynamic languages, some of the problems of making IronRuby run fast, and how the DLR helps with implementing languages.

VMware Infrastructure 3 Book Excerpt and Author Interview

VMware Infrastructure 3: Advanced Technical Design Guide and Advanced Operations Guide provides a wealth of practical insights into setting up virtualization in todays corporate environments.