ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

Programming Notes: JRuby

draft
Date: 2011-05-17
Tags: ruby jruby notes

JRuby Notes Notes about using JRuby for the first time. I've got a Rails 3.0.7 app up on Windows and am trying to get it to work with JRuby, so it actually performs. Here are the steps: 1. download JRuby from JRuby.org > Downloads http://jruby.org.s3.amazonaws.com/downloads/1.6.1/jruby-src-1.6.1.zip 1. extract to c:\jruby-1.6.1 note: the \bin directory should be located directly under, ie: c:\jruby-1.6.1\bin

add c:\jruby-1.6.1\bin to the Windows PATH environment variable

note: you should be able to get a version from the command line, using jruby -v 1. open a command prompt and cd to your Rails app ie: c:\RI\apps\Rails-Demo-App 1. modify the Gemfile (under the directory above). add the following: gem 'activerecord-jdbcmssql-adapter' gem 'activerecord-jdbc-adapter' 1. from the command prompt: jruby -S gem install bundle 1. again. jruby -S bundle install note: make sure the Gemfile.lock is deleted (or you may get errors) to install the gems specified in the Gemfile this should install the gems above my Gemfile also included gem 'rails', '~>3.0.4' # framework so... Rails 3.0.7 (most current) was installed as well

By Ryan Wold · © 2011–2026 Ryan Wold

Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.

Tip: $afomi on HandCash · afomi@handcash.io