Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env jruby
- include 'java'
- Java::java.lang.Class.forName('com.mysql.jdbc.Driver')
- include_class 'java.sql.DriverManager'
- cnx = DriverManager.get_connection("jdbc:mysql://127.0.0.1/motionbox_development_slyphon", 'motionbox', 'motionbox')
- p cnx
- __END__
- slyphon@lumpygravy> CLASSPATH=mysql-connector-java-3.1.14-bin.jar jruby try-cnx.rb
- try-cnx.rb:4:in `method_missing': undefined method `append_features' for "java":String (NoMethodError)
- from try-cnx.rb:4:in `include'
- from try-cnx.rb:4
Add Comment
Please, Sign In to add comment