Getting Started With JRuby on Rails for Sun GlassFish Enterprise Server v3 Prelude

ProcedureRunning a Rails Application That Uses Java 2D Code

  1. Deploy the application on the GlassFish v3 Gem:

    jruby -S glassfish_rails imageprocess
  2. Run the application by entering the following URL into your browser:

    http://localhost:3000/home/index

    You should now see an image and a link that says, “Perform a ColorConvertOp on this image.”

  3. Click the link.

    You should now see a grayscale version of the image from the previous page.