0
我的JRuby + Swing應用程序,並要添加jdbc/mysql
有JRuby的JDBC-MySQL錯誤
require "jdbc/mysql"
但是,當我試圖運行它,我有followig錯誤:
LoadError: no such file to load -- jdbc/mysql
require at org/jruby/RubyKernel.java:1033
(root) at olap_frontend.rb:3
我的寶石名單:
*** LOCAL GEMS ***
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcmysql-adapter (1.2.2)
bouncy-castle-java (1.5.0146.1)
bundler (1.1.3 ruby)
jdbc-mysql (5.1.13)
jruby-launcher (1.0.12 java)
jruby-openssl (0.7.6.1)
rake (0.9.2, 0.8.7)
rubygems-bundler (0.3.0 ruby)
我在做什麼錯了?
嘗試需要 「active_record」,而不是 – 2012-04-06 18:55:33
LoadError:沒有這樣的文件來加載 - active_record 需要在組織/ JRuby中/ RubyKernel.java:1033 (根)在olap_frontend.rb:4 – skayred 2012-04-07 03:10:24