Reputation: 1087
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
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