Forum: JRuby preferred way to start creating an app.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B0f6d8efcf671ea3163449e231264cc4?d=identicon&s=25 Msan Msan (msan)
on 2013-07-18 21:01
(Received via mailing list)
I think a lot of guys here use rails with jruby.
How do you create an application?
Simply with

 jruby -S rails new myapp -m


rails new myapp -m
Christian MICHON (Guest)
on 2013-07-19 10:38
(Received via mailing list)
On Thu, Jul 18, 2013 at 9:00 PM, Mauro Sanna <> wrote:

Unless I missed your point, this is a rails question, not a jruby
I suggest you ask it to the right mailing list.
Karol Bucek (Guest)
on 2013-07-19 14:49
(Received via mailing list)
Hi Mauro, you simply create your new app - no special setting should be

Rails core should detect that you're on JRuby and sets-up gem
'activerecord-jdbc-adapter' (and rhino as well)
or if you're using a built-in supported DB such as MySQL ... than sets
gem 'activerecord-jdbcmysql-adapter' in your Gemfile.

You can safely create an app from MRI and than simply add

gem 'activerecord-jdbcmysql-adapter', platform: :jruby
gem 'therubythino', platform: :jruby

and maybe change a few MRI specific such as :

gem 'mysql2', platform: :ruby
gem 'therubyracer', platform: :ruby

and it should all work under both JRuby as well as MRI.

There's only one catch for AR-JDBC adapter - 1.3.0 is in the making and
latest stable (1.2.9) does not officialy support Rails 4.x ... you can
a beta or master for now.

Hope it helps, K.

On Fri, Jul 19, 2013 at 10:36 AM, Christian MICHON <
This topic is locked and can not be replied to.