[postgis-users] Java Test Fails

Gary Sherman sherman at mrcc.com
Mon Jul 14 21:25:37 PDT 2003


The postgresql jdbc driver was not found in your classpath. That is the
cause of the unresolved symbols. Make sure the postgresql jar is
referenced correctly.
-gary

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Darren Houston
Sent: Monday, July 14, 2003 8:11 AM
To: 'PostGIS Users Discussion '
Subject: [postgis-users] Java Test Fails



Hello all. 

I am having difficulties trying to compile and run the jtest included
with PostGIS 0.7.5. When I execute "make jtest" I get the following
errors;

[root at gis3 jdbc]# make jtest 
/usr/java/j2sdk1.4.1_03/bin/javac -classpath
/usr/share/pgsql/java/pg73b1jdbc2.jar:/usr/share/pgsql/java/postgis.jar:
. examples/TestServer.java

examples/TestServer.java:35: cannot resolve symbol 
symbol  : class Connection 
location: package postgresql 
 
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PG
geometry"); 
                                        ^ 
examples/TestServer.java:36: cannot resolve symbol 
symbol  : class Connection 
location: package postgresql 
 
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox
3d"); 
                                        ^  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20030714/b6a46c5a/attachment.html>


More information about the postgis-users mailing list