Preparing Your Environment

Four software packages are required to run the examples in the book. They’re listed here along with the version needed:

  • Java Development Kit (JDK) 8 (aka 1.8)
  • JRuby 9.0.5.0
  • Git 2.5
  • Bundler 1.11

Java is supported in one form or another on a wide range of operating systems including Linux, Mac, Windows, and more. But the installation process will be different for each platform.

Installing Java

On Debian-based Linux platforms such as Ubuntu, the JVM can be installed with APT, like this:

 $ ​​sudo​​ ​​apt-get​​ ​​install​​ ​​openjdk-8-jdk

On Fedora, Oracle Linux, and Red Hat, the JVM is installed with the yum command, like this:

 $ ​​su​​ ​​-c​​ ​​"yum install java-1.8.0-openjdk"

For Mac OS X and Windows systems, ...

Get Deploying with JRuby 9k now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.