Prerequisites

If you want to build the sample applications in this chapter, you will need a Java compiler and a Java runtime environment. If you are using Windows, Linux, or Solaris, you can obtain the Java SDK (software development kit) and runtime environment from Sun Microsystems (http://java.sun.com). For other environments, search the web or contact your vendor.

I'll use a simple makefile to build the JDBC sample applications, so you will need the make utility as well.

Listing 13.1 shows the makefile that I'll use:

Listing 13.1. makefile
#
# Filename: makefile
#
JAVAC      = javac
JFLAGS     = -g

.SUFFIXES: .class .java


.java.class: 
        $(JAVAC) $(JFLAGS) $<

This makefile states that, to turn a .java (Java source code) file into a .class (Java executable) ...

Get PostgreSQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.