How to connect to Oracle using JRuby & JDBC

后端 未结 4 747
鱼传尺愫
鱼传尺愫 2020-12-29 01:00

First approach: bare metal

require \'java\'
require \'rubygems\'
require \"c:/ruby/jruby-1.2.0/lib/ojdbc14.jar\"  # should be redundant, but tried it anyway
         


        
4条回答
  •  隐瞒了意图╮
    2020-12-29 01:36

    It turns out that my ojdbc14.jar file was corrupt.

    Further, the jar file MUST be in the jruby/lib directory. Simply having it on the classpath does not work.

提交回复
热议问题