Download the driver for postgres (Postgres Driver). Then add it to your classpath (in eclipse, go to Project->Properties->Java Build Path->Libraries->Add External Jar and load the driver from there).