pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Compilation error with --with-java option
3+ messages / 3 participants
[nested] [flat]

* Compilation error with --with-java option
@ 2004-09-30 05:57 KrishnaPradeep Tamma <krishnapradeep@gmail.com>
  2004-09-30 07:42 ` Re: Compilation error with --with-java option John McBride <jmcbride@ccis.com>
  0 siblings, 1 reply; 3+ messages in thread

From: KrishnaPradeep Tamma @ 2004-09-30 05:57 UTC (permalink / raw)
  To: pgsql-admin

hi,

I was able to successfully compile and run postgresql-7.4.5 with out
"--with-java" option on a Redhat Linux machine.

But when I enable the "--with-java" option I am getting the following
error message.

*************************************************************************
gmake[3]: Entering directory `/scratch/postgresql-7.4.5/src/interfaces/jdbc'
/usr/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml

all:

prepare:
    [mkdir] Created dir: /scratch/postgresql-7.4.5/src/interfaces/jdbc/build
    [mkdir] Created dir: /scratch/postgresql-7.4.5/src/interfaces/jdbc/jars

check_versions:

check_driver:

driver:
     [copy] Copying 1 file to
/scratch/postgresql-7.4.5/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC3 edition driver with NO SSL

compile:
    [javac] Compiling 77 source files to
/scratch/postgresql-7.4.5/src/interfaces/jdbc/build
    [javac] /scratch/postgresql-7.4.5/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] /scratch/postgresql-7.4.5/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] /scratch/postgresql-7.4.5/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] /scratch/postgresql-7.4.5/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

************************************************************************

Help is anticipated
Thank you,
pradeep



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Compilation error with --with-java option
  2004-09-30 05:57 Compilation error with --with-java option KrishnaPradeep Tamma <krishnapradeep@gmail.com>
@ 2004-09-30 07:42 ` John McBride <jmcbride@ccis.com>
  0 siblings, 0 replies; 3+ messages in thread

From: John McBride @ 2004-09-30 07:42 UTC (permalink / raw)
  To: pgsql-admin

KrishnaPradeep Tamma wrote:
> hi,
> 
> I was able to successfully compile and run postgresql-7.4.5 with out
> "--with-java" option on a Redhat Linux machine.
> 
i'm a total newb with pg but i found this on google:

http://archives.postgresql.org/pgsql-admin/2004-04/msg00309.php

might help.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Compilation error with --with-java option
@ 2004-10-01 02:41 Cao Van Khanh <cvkhanh@cmc.com.vn>
  0 siblings, 0 replies; 3+ messages in thread

From: Cao Van Khanh @ 2004-10-01 02:41 UTC (permalink / raw)
  To: John McBride <jmcbride@ccis.com>; +Cc: pgsql-admin

Hey , I think you should not install with --with-jdbc because the option
--with-jdbc just create the jdbc driver for the client . Client can
download jdbc from somewhere in internet . 

Hopping you'll success

-----Original Message-----
From: John McBride [mailto:jmcbride@ccis.com] 
Sent: Thursday, September 30, 2004 2:43 PM
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Compilation error with --with-java option

KrishnaPradeep Tamma wrote:
> hi,
> 
> I was able to successfully compile and run postgresql-7.4.5 with out
> "--with-java" option on a Redhat Linux machine.
> 
i'm a total newb with pg but i found this on google:

http://archives.postgresql.org/pgsql-admin/2004-04/msg00309.php

might help.

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-10-01 02:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30 05:57 Compilation error with --with-java option KrishnaPradeep Tamma <krishnapradeep@gmail.com>
2004-09-30 07:42 ` John McBride <jmcbride@ccis.com>
2004-10-01 02:41 Re: Compilation error with --with-java option Cao Van Khanh <cvkhanh@cmc.com.vn>

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