Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 501
Palani Kannan Avatar asked Jan 25 '26 07:01

Palani Kannan


1 Answers

Got the same error. Look in your config/database.yml - netbeans changes the adapter automatically. Just write 'sqlite3' as adapter or whatever fits for you instead of 'jdbcmysql'.

Hope I could help!

like image 120
Andre Schweighofer Avatar answered Jan 26 '26 21:01

Andre Schweighofer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!