Re: Can't build

Поиск
Список
Период
Сортировка
От Christian Schlichtherle
Тема Re: Can't build
Дата
Msg-id D812DBC2-D856-43B1-8DF6-740189442306@schlichtherle.de
обсуждение исходный текст
Ответ на Can't build  (Christian Schlichtherle <christian@schlichtherle.de>)
Список 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@schlichtherle.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

Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Christian Schlichtherle
Дата:
Сообщение: Can't build
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: java.sql.Statement.isClosed() throws an SQLException if the statement is closed