On Apr 22, 2010, at 7:52 AM, GregD wrote: > Does anyone connect to Sybase using Sequel? > > Since there is no native adapter, can I use the generic JDBC adapter? > > If I use the generic JDBC adapter, how would I connect using ruby and > not jruby? Do I need rjb gem? > > I'd like to do this via irb before doing any actual model coding. > What gems will be required to connect via jdbc? What env variables > need to be set to get to the java and to the sybase jdbc jar? Will > just setting the CLASSPATH work? > > When I first tried to connect with the jdbc connection string, I got: > > Sequel::AdapterNotFound: LoadError: no such file to load -- java
The only time I have seen that error was when I tried to run with MRI. If you saw this error when executing your code under JRuby then there might be a jruby environment problem. You need JRuby to run any of the JDBC adapters. It's the only ruby environment that understands java. cr -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
