After spending 3 days on this decided to post here for the first time

Hello everyone, this is a cross-post to Stackoverflow so sorry if you’re
seeing this twice. However, this issue has been really frustrating me
recently and seems beyond my comprehension other than that it involves
the
classpath, classloader and load path in ways that I don’t quite
understand.
Here is the question:

You’ll notice that the top is a vanilla jdbc Java program that works
completely fine. I pass the netezza jar on the command line via the -cp
flag and everything works fine and dandy. However, when using the
program
taken verboten (with some changes and comments of old changes from
things
the internet recommended to get it to work as well as some stuff I
gleaned
from the activerecord-jdbc-adapter, and the dbd-jdbc adapters. Summary
of
issue: It doesn’t seem like the Netezza driver is successfully
registering
with the DriverManager (even when I pass the jar through -J-cp although
a
forum post somewhere claimed that didn’t work since -J-cp doesn’t put it
on
the classloader path or something).

Anyways, totally confused, like the overflow question states, I cannot
use
gems, and just looking for someone to explain what is going on that I
don’t
understand and to help me resolve this issue as it seems beyond my
limited
knowledge of how JVM, Java, DriverManager works. Anyways, thanks a lot
in
advance.

Alex