United States: Fort Worth
Add a MainClass that tells the user they can' t just run the JDBC driver After one too many reports of " Failed to load Main- Class manifest attribute from postgresql- xxx. jar" I' m submitting a dummy main- class that tells the user what they should do instead. This is possibly the best guide for connecting to Postgresql with JDBC.
If I can suggest a few things before this tutorial begins, a few lines on the setup within postgresql itself that are needed first but not obvious how to do them.
Here’ s an example to show you how to connect to Oracle database via a JDBC driver. Download Oracle JDBC Driver.