############# ## Files ## ############# postgresql-9.1.jar -postgresql library PSQLConnection.java -postgresql database interface code sample RiverHierachy.java -code sample for reading rivers from database and putting them into hierarchy ############### ## Database ## ############### host = "ewis.pld.ttu.ee:5432"; database = "ablid"; user = "ablid"; password = "Abl1d"; ############################### ## Adding library on Eclipse ## ############################### 1.Download postgresql library (postgresql-9.1.jar). 2.Move it into your project directory. 3.Right click on project -> Run As -> Run configuration -> -> Java Application -> classpath -> -> Add external JARs -> choose library location -> OK