<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Java Test Fails</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello all.</FONT>
</P>

<P><FONT SIZE=2>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;</FONT></P>

<P><FONT SIZE=2>[root@gis3 jdbc]# make jtest</FONT>
<BR><FONT SIZE=2>/usr/java/j2sdk1.4.1_03/bin/javac -classpath /usr/share/pgsql/java/pg73b1jdbc2.jar:/usr/share/pgsql/java/postgis.jar:. examples/TestServer.java</FONT></P>

<P><FONT SIZE=2>examples/TestServer.java:35: cannot resolve symbol</FONT>
<BR><FONT SIZE=2>symbol  : class Connection</FONT>
<BR><FONT SIZE=2>location: package postgresql</FONT>
<BR><FONT SIZE=2>                        ((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeometry");</FONT>
<BR><FONT SIZE=2>                                        ^</FONT>
<BR><FONT SIZE=2>examples/TestServer.java:36: cannot resolve symbol</FONT>
<BR><FONT SIZE=2>symbol  : class Connection</FONT>
<BR><FONT SIZE=2>location: package postgresql</FONT>
<BR><FONT SIZE=2>                        ((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d");</FONT>
<BR><FONT SIZE=2>                                        ^</FONT>
<BR><FONT SIZE=2>2 errors</FONT>
<BR><FONT SIZE=2>make: *** [jtest] Error 1</FONT>
<BR><FONT SIZE=2>[root@gis3 jdbc]#</FONT>
</P>

<P><FONT SIZE=2>I have setup the database connection properties within TestServer.java and the paths within Makefile. I also have connected to the database with a jdbc client GUI and issued all the commands successfully that the TestServer.java tries to do. I have also tried to use all 4 available PostgreSQL java drivers for the connection.</FONT></P>

<P><FONT SIZE=2>My database is PostgreSQL 7.3.3 running on RedHat 9. I am new to PostGIS and Java, so please excuse me if the answer is something simple.</FONT></P>

<P><FONT SIZE=2>Thank you for any help,</FONT>
</P>

<P><FONT SIZE=2>Darren H.</FONT>
</P>

</BODY>
</HTML>