You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To compile the driver, simply use make in the src/interfaces/jdbc directory.
29
-
This will compile the driver, and build a .jar file (Java ARchive).
21
+
There are actually two versions of the driver. One for the JDBC1.2 specification, and one for the JDBC2 specification. To compile the driver, you need to select the correct one.
30
22
31
-
REMEMBER: once you have compiled the driver, it will work on ALL platforms
32
-
that support the JDK 1.1 api or later.
23
+
If you have JDK1.1.x you need to type: make jdbc1
33
24
34
-
The V6.5 driver introduced support for the JDBC2 specification (which is used
35
-
with JDK 1.2 api and later). This caused us some problems because classes
36
-
written for JDBC1 and JDBC2 are not compatible, so a large chunk of the
37
-
driver had to be re-written to accomodate this.
25
+
If you have JDK1.2 or JDK1.3, you need to type: make jdbc2
38
26
39
-
Running make will build a .jar file (postgresql.jar) which contains the driver.
40
-
That jar file will contain the driver for _your_ version of the JDK. That is,
41
-
if you run make using JDK 1.1.7, then you will get the JDBC1 driver. If you
42
-
run using 1.2 then you will get the JDBC2 driver.
27
+
This will compile the driver, and build a .jar file (Java ARchive) called
28
+
postgresql.jar
43
29
44
-
Tip: If you want the driver to run on both JDBC1 or JDBC2, first compile under
45
-
JDK 1.1.x, then recompile under JDK 1.2.
30
+
That jar file will contain the driver for _your_ version of the JDK.
46
31
47
-
In testing, I've done this using 1.1.6 (running under linux), and running make
48
-
on my Win95 based Laptop (CygWin B20.1 was used to get a GNUMake - and a
49
-
decent shell {bash}).
50
-
51
-
When the .jar file is built, it includes all the classes under postgresql, and
52
-
the driver automatically selects the correct classes.
32
+
REMEMBER: Once you have compiled the driver, it will work on ALL platforms
33
+
that support that version of the API. You don't need to build it for each
34
+
platform.
53
35
54
36
That means you don't have to compile it on every platform. Believe me, I
55
37
still hear from people who ask me "I've compiled it ok under Solaris, but it
@@ -78,20 +60,12 @@ versions of the backend) on my web site http://www.retep.org.uk/postgres/
78
60
79
61
INSTALLING THE DRIVER
80
62
81
-
To install the driver, the .class files have to be in the classpath. This can be
82
-
done in two ways:
83
-
84
-
1: create a directory "postgresql" (and it must be called this) in the current
85
-
directory (or a directory in the class path), and copy all .class files
86
-
into it.
63
+
To install the driver, the .class files have to be in the classpath. To do
64
+
this, copy the postgres.jar file into a directory, and add it to the classpath.
87
65
88
-
2: copy the postgres.jar file into a directory, and add it to the classpath.
66
+
ie: under LINUX/SOLARIS (the example here is my linux box):
89
67
90
-
ie: under LINUX/SOLARIS (the example here is my linux box):
0 commit comments