pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedCompiler 7.4 with--java Error on Redhad AS 2.4.21
2+ messages / 2 participants
[nested] [flat]
* Compiler 7.4 with--java Error on Redhad AS 2.4.21
@ 2004-03-30 17:28 yihuey <yihuey@pchome.com.tw>
0 siblings, 1 reply; 2+ messages in thread
From: yihuey @ 2004-03-30 17:28 UTC (permalink / raw)
To: pgsql-interfaces
Hello:
I have the same question and environment.My Server never install old version postgreSQL.
Pls tell me how to solve.
Hi,
I am using linux redhat 3.0 and sun jsdk 1.4.2.
I try to compile pg 7.4 --with-java to be able to get the new jdbc
driver.
After calling gmake I get this error:
gmake[3]: Leaving directory `/pginst/postgresql-7.4/src/interfaces/ecpg'
gmake[3]: Entering directory
`/pginst/postgresql-7.4/src/interfaces/jdbc'
/usr/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml
all:
prepare:
check_versions:
check_driver:
driver:
[copy] Copying 1 file to
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql
[echo] Configured build for the JDBC3 edition driver with NO SSL
compile:
[javac] Compiling 77 source files to
/pginst/postgresql-7.4/src/interfaces/jdbc/build
[javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
[javac] public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
[javac] ^
[javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
[javac] public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
[javac] ^
[javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29:
error: Method
`org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)'
was defined with return type
`org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
[javac] static Jdbc3PoolingDataSource getDataSource(String
name)
[javac] ^
[javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
[javac] public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
[javac] ^
[javac] 4 errors
BUILD FAILED
file:/pginst/postgresql-7.4/src/interfaces/jdbc/build.xml:116: Compile
failed; see the compiler error output for details.
Total time: 2 seconds
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory `/pginst/postgresql-7.4/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/pginst/postgresql-7.4/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/pginst/postgresql-7.4/src'
gmake: *** [all] Error 2
==========================================================
¶W¯ÅIT»´ÃP°µ ·¥¯µ§Þ
http://edm-prg.epaper.com.tw/click.php?ad_code=86358
==========================================================
PChome¥æ¤Í~~©¯ºÖ¤Ñ¤Ñ¦³ \*^o^*//
http://love.pchome.com.tw/
==========================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Compiler 7.4 with--java Error on Redhad AS 2.4.21
@ 2004-04-11 04:48 Kris Jurka <books@ejurka.com>
parent: yihuey <yihuey@pchome.com.tw>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2004-04-11 04:48 UTC (permalink / raw)
To: yihuey <yihuey@pchome.com.tw>; +Cc: pgsql-interfaces
On Wed, 31 Mar 2004, yihuey wrote:
> Hello:
>
> I have the same question and environment.My Server never install old version postgreSQL.
> Pls tell me how to solve.
>
> Hi,
> I am using linux redhat 3.0 and sun jsdk 1.4.2.
> I try to compile pg 7.4 --with-java to be able to get the new jdbc
> driver.
> After calling gmake I get this error:
> /pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28:
> error: Invalid checked exception class `java.sql.SQLException' in
> `throws' clause. The exception must be a subclass of an exception thrown
> by
This is due to redhat including an existing postgresql.jar file in the
classpath or somewhere else in your environment. To build a new version
you need to remove this from you compile environment. The other
alternative is to simply download a prebuilt binary from
http://jdbc.postgresql.org/download.html
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-04-11 04:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-30 17:28 Compiler 7.4 with--java Error on Redhad AS 2.4.21 yihuey <yihuey@pchome.com.tw>
2004-04-11 04:48 ` Kris Jurka <books@ejurka.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox