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
  • 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.