conspirisi
conspirisi

Reputation: 1087

ActiveRecord-JDBC is for use with JRuby only problem

I'm running ruby script/server from the command line and getting

ActiveRecord-JDBC is for use with JRuby only

it then suggests gem install activerecord-jdbcmysql-adapter

but when I try this it says that

(no such file to load -- java) (RuntimeError)

I've tried a fresh install of Rails and reinstalling the gems, but still not joy. Any suggestion on how to proceed?

Upvotes: 0

Views: 1215

Answers (1)

manu
manu

Reputation: 11

Probably you generate your project using the default Netbeans settings which uses JRuby, so your project was created for JRuby and when you try to run it using mongrel you got that error.

Try creating a new project using ruby in Netbeans.

Upvotes: 1

Related Questions