Hi there
I'd be grateful if someone could point out to me where I'm going wrong with the following code. I have one very basic
JDBC test program that seems to work fine, but another very similar program where I have the following errors when I try to compile:
cannot find symbol:
symbol: class Statement
location: class Jdbc11
Statement stmt;
cannot find symbol:
symbol: class Connection
location: class Jdc11
Connection con = DriveManager.getConnection("jdbc:mysql://localhost/mysql", "root", "secret");
cannot find symbol:
symbol: variable DriveManager
loction: class Jdbc11
Connection con = DriveManager.getConnection("jdbc:mysql://localhost/mysql", "root", "secret");
Here's the full code for the program that does
NOT work:
and just for comparison, here's the code for the program that
does work:
Cheers
Joe Lemmer