JDBC is pretty easy, but I haven't done a plain old connection in a while (been using database connection pools for some time).
You need to download the JDBC driver for whatever database it is you're using, and include it in you classpath.
Sun has a JDBC tutorial online
here. Skip the bits about setting up a database and go right to chapter 3, "Establishing a Connection". Let me know if you need help with anything.