pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC make problem
2+ messages / 2 participants
[nested] [flat]

* JDBC make problem
@ 2000-11-01 20:32  Bogdan Paduraru <bpaduraru@petar.ro>
  0 siblings, 1 reply; 2+ messages in thread

From: Bogdan Paduraru @ 2000-11-01 20:32 UTC (permalink / raw)
  To: pgsql-admin

Hello,
I tried to build the JDBC2 driver from Postgresql 7.0.2 distribution
(/src/interfaces/jdbc), but I got errors :
$ make jdbc2 jar

(echo "package org.postgresql;" ;\
 echo "public class DriverClass {" ;\
 echo "public static String
connectClass=\"org.postgresql.jdbc2.Connection\";" ;\
 echo "}" \
) >org/postgresql/DriverClass.java
rm -f postgresql.jar
make[1]: Entering directory
`/usr/src/postgresql-7.0.2/src/interfaces/jdbc'
javac -g org/postgresql/DriverClass.java
javac -g org/postgresql/Connection.java
org/postgresql/Connection.java:7: Class org.postgresql.Field not found
in import.
import org.postgresql.Field;
       ^
org/postgresql/Connection.java:8: Package org.postgresql.fastpath not
found in import.
import org.postgresql.fastpath.*;
       ^
org/postgresql/Connection.java:9: Package org.postgresql.largeobject not
found in import.
import org.postgresql.largeobject.*;
       ^
org/postgresql/Connection.java:10: Package org.postgresql.util not found
in import.
import org.postgresql.util.*;
       ^
4 errors
make[1]: *** [org/postgresql/Connection.class] Error 1
make[1]: Leaving directory
`/usr/src/postgresql-7.0.2/src/interfaces/jdbc'
make: *** [jdbc2] Error 2

Can you help, please?

Bogdan




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

* Re: JDBC make problem
@ 2000-11-04 18:20  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Bogdan Paduraru <bpaduraru@petar.ro>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2000-11-04 18:20 UTC (permalink / raw)
  To: Bogdan Paduraru <bpaduraru@petar.ro>; +Cc: pgsql-admin

My guess is that you are using Kaffe.  It does not handle self-dependent
compiles like Sun java.  The only solution is to download the
precompiled jar file from the URL in the interfaces/jdbcc README.


[ Charset ISO-8859-15 unsupported, converting... ]
> Hello,
> I tried to build the JDBC2 driver from Postgresql 7.0.2 distribution
> (/src/interfaces/jdbc), but I got errors :
> $ make jdbc2 jar
> 
> (echo "package org.postgresql;" ;\
>  echo "public class DriverClass {" ;\
>  echo "public static String
> connectClass=\"org.postgresql.jdbc2.Connection\";" ;\
>  echo "}" \
> ) >org/postgresql/DriverClass.java
> rm -f postgresql.jar
> make[1]: Entering directory
> `/usr/src/postgresql-7.0.2/src/interfaces/jdbc'
> javac -g org/postgresql/DriverClass.java
> javac -g org/postgresql/Connection.java
> org/postgresql/Connection.java:7: Class org.postgresql.Field not found
> in import.
> import org.postgresql.Field;
>        ^
> org/postgresql/Connection.java:8: Package org.postgresql.fastpath not
> found in import.
> import org.postgresql.fastpath.*;
>        ^
> org/postgresql/Connection.java:9: Package org.postgresql.largeobject not
> found in import.
> import org.postgresql.largeobject.*;
>        ^
> org/postgresql/Connection.java:10: Package org.postgresql.util not found
> in import.
> import org.postgresql.util.*;
>        ^
> 4 errors
> make[1]: *** [org/postgresql/Connection.class] Error 1
> make[1]: Leaving directory
> `/usr/src/postgresql-7.0.2/src/interfaces/jdbc'
> make: *** [jdbc2] Error 2
> 
> Can you help, please?
> 
> Bogdan
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



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


end of thread, other threads:[~2000-11-04 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-01 20:32 JDBC make problem Bogdan Paduraru <bpaduraru@petar.ro>
2000-11-04 18:20 ` Bruce Momjian <pgman@candle.pha.pa.us>

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