[postgis-users] org.postgresql.Connection missing in PostGIS jar
alex bodnaru
alexbodn at 012.net.il
Tue Apr 25 18:55:11 PDT 2006
hi,
i'm not java programmer. i just came across it when dealing with packaging.
please see the java test programs in postgis.
alex
Cathy Y. Walters wrote:
> There does exist a PGConnection class in postgresql jar, but the sample code
> in the manual uses org.postgresql.Connection.
>
> Does the sample code work?
>
> Thanks,
> cyw
>
> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net
> [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of alex
> bodnaru
> Sent: Tuesday, April 25, 2006 7:01 PM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] org.postgresql.Connection missing in PostGIS
> jar
>
> what about PGConnection?
>
> alex
>
> Cathy Y. Walters wrote:
>
>>I would add to it that this class is not in postgresql jar either.
>>The example java code that references this class is:
>>
>>
>
> ((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeom
>
>>etry");
>>
>>Thanks
>>==========================================================================
>>
>>I tried to compile the JDBC example (JavaGIS) listed in Section 4.8 in the
>>manual, and got an error that org.postgresql.Connection cannot be
>
> resolved.
>
>>I checked postgis.jar, and did not find this class. Then I checked my
>
> build
>
>>directory and did see that this class was created:
>>
>>./contrib/postgis-1.1.2/jdbc2/stubbin/org/postgresql/Connection.class
>>
>>I followed instructions in postgresql and postgis documentation in my
>>installation process. My guess is that the PostGIS build process somehow
>>managed to miss these java classes.
>>
>>Thanks,
>>CYW
>>
>>
>>_______________________________________________
>>postgis-users mailing list
>>postgis-users at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>>
>>_______________________________________________
>>postgis-users mailing list
>>postgis-users at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
More information about the postgis-users
mailing list