RuntimeError (Please install the jdbcmysql adapter: `gem install activerecord-jdbcmysql-adapter` (no such file to load — java))

Hi,

My Rails server worked well through normal development scripting and I planned to use Netbeans for Rails. When I started my existing project with Netbeans and restarted my Webrick server, It shows error

RuntimeError (Please install the jdbcmysql adapter: gem install activerecord-jdbcmysql-adapter (no such file to load – java))

I feel this error is related with JRuby, But I never using JRuby and I am using Ruby 1.9.2, Rails 3.0.0 and I dont want to use JRuby and Glassfish. I tried to remove default JRuby and Ruby1.9.2 as default, but i cant. I feel there may be a cause of linking error w.r.t JRuby. Kindly help me to rectify this issue.

Hi, I solved this issue, In Netbeans, i set Ruby 1.9.2 as default by Project → Right Click “My project” → Set Configuration ->Customize → Changed Ruby Platform as “Ruby 1.9.2” from “JRuby”.

Now it works without any error. This may help for some other reader.