Thanks for the speedy reply guys. That's very nice
Jeff: What is meant by a client tool? The DB I've installed is FireBird combined with JayBird. Does FireBird automatically come with a client or do I need to install one seperately? Thanks for the advice on handling exceptions.
I'll post the code that I'm assuming is relevant with the exception message. Some of it is in Dutch, I hope you can work your way around that.
This is the method that catches an exception:
gebruikersnaam = username, wachtwoord = password. "con" is already declared as an attribute in the class with null as its value. This private method is only meant to establish the connection.
URL is defined in DBConst:
This class is part of the same package, I didn't include the package declaration here because I thought it redundant.
Anyway, some translation:
padnaam: pathname (or just path I guess)
Drivernaam: Driver name (Dutch is easy)
URL, speaks for itself
Gebruikersnaam and wachtwoord, username and password.
That little comment above the declarations reads: "fill in the correct path to the folder which contains the projects."
The
test where it all goes wrong is a static void main method:
I've translated commentary here to english.
The test class and the DBConst class came with the course material, so besides defining the Path in DBConst I haven't changed it much.
I really have a strong feeling that installed the DB or the jdbc wrongly.
So there. Again, thanks for this.