Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc785e1e

Browse files
committed
Update. Things are now build through 'make'.
1 parentcfab4f6 commitc785e1e

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

‎src/interfaces/jdbc/README

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,16 @@ http://jakarta.apache.org/ant/index.html and download the binary. Being pure
3131
java it will run on virtually all java platforms. If you have any problems
3232
please email the INTERFACES list.
3333

34-
Once you have ANT, cd to the src directory and type "ant". This will compile
35-
the correct driver for your JVM, and build a .jar file (Java ARchive) called
36-
postgresql.jar
34+
Once you have ANT, run the configure script in the top-level directory with
35+
the --with-java option. Then proceed with 'make' and 'make install' as
36+
usual. This will compile the correct driver for your JVM, and build a .jar
37+
file (Java ARchive) called postgresql.jar. The file will be installed in
38+
the directory PREFIX/share/java.
3739

3840
That jar file will contain the driver for _your_ version of the JDK.
3941

40-
Note: As of 7.1, you build from pgsql/src and not pgsql/src/interfaces/jdbc.
41-
Well you can, but building from the top will also build some extra utilities
42-
located under /contrib at the same time. Also later on (either 7.1.1 or 7.2)
43-
it's intended to have the main configure script to build the driver
44-
automatically if it finds both a JDK & ANT installed, so this is the first step
45-
towards that.
42+
Note: As of 7.1, you can build from the top-level directory or from
43+
src/interfaces/jdbc.
4644

4745
REMEMBER: Once you have compiled the driver, it will work on ALL platforms
4846
that support that version of the API. You don't need to build it for each
@@ -52,8 +50,8 @@ That means you don't have to compile it on every platform. Believe me, I
5250
still hear from people who ask me "I've compiled it ok under Solaris, but it
5351
won't compile under Linux" - there's no difference.
5452

55-
I advise you don't tryrunningjavacoutside of ANT as it builds some classes
56-
on the fly.
53+
Don't tryto runjavacdirectly. Don't try to run ant directly. Neither
54+
will work.
5755

5856
Possible problems
5957

@@ -75,12 +73,11 @@ More details are in the Implementation file src/interfaces/jdbc/Implementation
7573

7674
INSTALLING THE DRIVER
7775

78-
To install the driver, the .class files have to be in the classpath. To do
79-
this, copy the postgres.jar file into a directory, and add it to the classpath.
76+
To install the driver, the .class files have to be in the classpath.
8077

8178
ie: under LINUX/SOLARIS (the example here is my linux box):
8279

83-
export CLASSPATH=.:/usr/local/lib/postgresql.jar
80+
export CLASSPATH=.:/usr/local/pgsql/share/java/postgresql.jar
8481

8582
Please don't be tempted to extract the files from the .jar file. There are a
8683
lot of files in there, and you may break the Exception handling.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp