From: | Christian Schlichtherle <christian(at)schlichtherle(dot)de> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Can't build |
Date: | 2014-08-17 06:56:05 |
Message-ID: | D812DBC2-D856-43B1-8DF6-740189442306@schlichtherle.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Ok, it’s an issue with ant < 1.9. The solution is to set JAVA_HOME, e.g. on OS X:
$ JAVA_HOME="`/usr/libexec/java_home -v 1.7`" ant -lib lib
Regards,
Christian
Am 16.08.2014 um 22:50 schrieb Christian Schlichtherle <christian(at)schlichtherle(dot)de>:
> Hi,
>
> I have cloned the pgjdbc repository on github. However, I can’t build the code following the directions:
>
> $ ant -lib lib
> Buildfile: /Users/christian/code/pgjdbc/build.xml
>
> all:
>
> prepare:
> [mkdir] Created dir: /Users/christian/code/pgjdbc/build
> [mkdir] Created dir: /Users/christian/code/pgjdbc/jars
>
> check_versions:
>
> check_driver:
>
> driver:
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/ds
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/ds
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/ds
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/ds
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/xa
> [copy] Copying 1 file to /Users/christian/code/pgjdbc/org/postgresql/ssl
> [echo] Configured build for the JDBC4.1 edition driver.
>
> compile:
> [javac] /Users/christian/code/pgjdbc/build.xml:243: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>
> BUILD FAILED
> /Users/christian/code/pgjdbc/build.xml:213: The following error occurred while executing this line:
> /Users/christian/code/pgjdbc/build.xml:243: Class not found: javac1.8
>
> Total time: 0 seconds
> $ java -version
> java version "1.8.0_11"
> Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
> Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
> $ ant -version
> Apache Ant(TM) version 1.8.4 compiled on August 7 2013
> $ uname -a
> Darwin coriander.fritz.box 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
>
> What else do I need to do?
>
> Regards,
> Christian Schlichtherle
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2014-08-18 12:29:54 | Re: java.sql.Statement.isClosed() throws an SQLException if the statement is closed |
Previous Message | Christian Schlichtherle | 2014-08-16 20:50:13 | Can't build |