[postgis-users] Problems compiling java tools

Michael Cunningham mjc1 at soc.soton.ac.uk
Tue Jun 17 07:13:31 PDT 2003


Would be grateful if anyone can suggest how to fix the following problem with 
compiling the postGIS JDBC?  The JAVAC, JAVA and JAR are in $path (and makes 
no difference hard-coding in paths), and "postgresql.jar" is in the correct 
directory and CLASSPATH pointing to this.  Thanks in advance.
Mike

javac -classpath /usr/local/pgsql/share/java/postgresql.jar: \
        org/postgis/Geometry.java \
        org/postgis/Point.java \
        org/postgis/MultiPoint.java \
        org/postgis/LineString.java \
        org/postgis/MultiLineString.java \
        org/postgis/LinearRing.java \
        org/postgis/Polygon.java \
        org/postgis/MultiPolygon.java
javac -classpath /usr/local/pgsql/share/java/postgresql.jar: \
        org/postgis/PGgeometry.java \
        org/postgis/PGbox3d.java
org/postgis/PGgeometry.java:16: cannot resolve symbol
symbol  : class Geometry
location: class org.postgis.PGgeometry
        Geometry geom;
        ^
org/postgis/PGgeometry.java:20: cannot resolve symbol
symbol  : class Geometry
location: class org.postgis.PGgeometry
        public PGgeometry(Geometry geom) {
                          ^
org/postgis/PGgeometry.java:55: cannot resolve symbol
symbol  : class Geometry
location: class org.postgis.PGgeometry
        public Geometry getGeometry() {
               ^
org/postgis/PGbox3d.java:18: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        private Point llb;
                ^
org/postgis/PGbox3d.java:23: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        private Point urt;
                ^
org/postgis/PGbox3d.java:28: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        public PGbox3d(Point llb, Point urt) {
                       ^
org/postgis/PGbox3d.java:28: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        public PGbox3d(Point llb, Point urt) {
                                  ^
org/postgis/PGbox3d.java:64: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        public Point getLLB() {
               ^
org/postgis/PGbox3d.java:69: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
        public Point getURT() {
               ^
org/postgis/PGgeometry.java:39: cannot resolve symbol
symbol  : class MultiPolygon
location: class org.postgis.PGgeometry
                        geom = new MultiPolygon(value);
                                   ^
org/postgis/PGgeometry.java:41: cannot resolve symbol
symbol  : class MultiLineString
location: class org.postgis.PGgeometry
                        geom = new MultiLineString(value);
                                   ^
org/postgis/PGgeometry.java:43: cannot resolve symbol
symbol  : class MultiPoint
location: class org.postgis.PGgeometry
                        geom = new MultiPoint(value);
                                   ^
org/postgis/PGgeometry.java:45: cannot resolve symbol
symbol  : class Polygon
location: class org.postgis.PGgeometry
                        geom = new Polygon(value);
                                   ^
org/postgis/PGgeometry.java:47: cannot resolve symbol
symbol  : class LineString
location: class org.postgis.PGgeometry
                        geom = new LineString(value);
                                   ^
org/postgis/PGgeometry.java:49: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGgeometry
                        geom = new Point(value);
                                   ^
org/postgis/PGbox3d.java:45: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
                llb = new Point(t.getToken(0));
                          ^
org/postgis/PGbox3d.java:46: cannot resolve symbol
symbol  : class Point
location: class org.postgis.PGbox3d
                urt = new Point(t.getToken(1));
                          ^
17 errors
make: *** [pgobjs] Error 1


**********************************************************************************************************
JAVAC = javac
JAVA = java
JAR = jar
CLASSPATH = /usr/local/pgsql/share/java/postgresql.jar:
                                                                                
all:    ogis \
        pgobjs \
        test
                                                                                
jar:
        $(JAR) -cf postgis.jar org/postgis/*.java org/postgis/*.class README
                                                                                
ogis:
        $(JAVAC) -classpath $(CLASSPATH) \
                org/postgis/Geometry.java \
                org/postgis/Point.java \
                org/postgis/MultiPoint.java \
                org/postgis/LineString.java \
                org/postgis/MultiLineString.java \
                org/postgis/LinearRing.java \
                org/postgis/Polygon.java \
                org/postgis/MultiPolygon.java




More information about the postgis-users mailing list