ruby and jRuby and PostgreSQL

Discussion in 'Ruby' started by Yvon Thoraval, Mar 6, 2004.

  1. i'm able to connect to a PostgreSQL database using ruby or java.

    but get a run time error with jruby :

    (eval):4:in 'getConnection': Native Exception: 'class
    java.sql.SQLException'; Message: No suitable driver; StackTrace:
    java.sql.SQLException: No suitable driver (RuntimeError)


    even if i do set both LD_LIBRARY_PATH and java.library.path then, i
    wonder if i could make use os require 'posgres' into my jruby script as
    with ruby ?

    but, it seems jruby knows nothing about the ruby install ???
    --
    yt
    Yvon Thoraval, Mar 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Slim Baltagi
    Replies:
    0
    Views:
    399
    Slim Baltagi
    Dec 15, 2007
  2. Ronald Fischer
    Replies:
    2
    Views:
    207
    Scott Miller
    May 16, 2007
  3. Charles Oliver Nutter

    [JRuby] JRuby perf questions answered

    Charles Oliver Nutter, Oct 31, 2007, in forum: Ruby
    Replies:
    7
    Views:
    176
    Kevin Williams
    Nov 1, 2007
  4. Martin Krauskopf

    [ANN] [JRuby] Fast Debugger for JRuby

    Martin Krauskopf, Nov 11, 2007, in forum: Ruby
    Replies:
    0
    Views:
    130
    Martin Krauskopf
    Nov 11, 2007
  5. Replies:
    0
    Views:
    143
Loading...

Share This Page