[Mapserver-users] Problem building the Java Mapscript module

Jim Buzbee James.P.Buzbee at lmco.com
Thu Jan 22 14:51:01 PST 2004


Jean-Henry Berevoescu wrote:
> 
> Hi,
> I recently saw a message about this problem and I tried to
> fix the problem with the paches as indicated
> (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ObtainingAndInstallingTheSoftware) 
> 
> The problem is still there.
> 
> Any hint/tip will be greatly apreciated.

Comments below, (from memory, may not be completely accurate ) Basically 
you just need to fix the errors and rebuild that portion...

> 
> Thanks,
> Jean Berevoescu
> 
> 
> Here is the output from the build:
> ======================================
> 
> 
> [bjh at localhost java]$ make
> /usr/local/swig/bin/swig -java -shadow -package edu.umn.gis.mapscript 
> mapscript.i
> Deprecated command line option: -shadow. Proxy classes are now generated 
> by default.
> gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG 
> -DUSE_GD_TTF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
> -DGD_HAS_GDIMAGEGIFPTR -I/usr/java/j2sdk1.4.2_03/include 
> -I/usr/java/j2sdk1.4.2_03/include/linux mapscript_wrap.c
> g++ -fpic -shared mapscript_wrap.o -o libmapscript.so -L/usr/local/lib 
> -L../.. -lmap -lgd -ljpeg -lttf -lpng -lz -ltiff -ljpeg -lpng -lz -ljpeg 
> -lm
> /usr/java/j2sdk1.4.2_03/bin/javac -d . *.java
> outputFormatObj.java:134: setExtension(java.lang.String) is already 
> defined in edu.umn.gis.mapscript.outputFormatObj
>  public void setExtension(String extension) {

Comment this method out..

>              ^
> outputFormatObj.java:138: setMimetype(java.lang.String) is already 
> defined in edu.umn.gis.mapscript.outputFormatObj
>  public void setMimetype(String mimetype) {

Comment this method out...

>              ^
> mapObj.java:307: clone() in edu.umn.gis.mapscript.mapObj cannot override 
> clone() in java.lang.Object; attempting to use incompatible return type
> found   : edu.umn.gis.mapscript.mapObj
> required: java.lang.Object
>  public mapObj clone() {

Change mapObj to Object.

>                ^
> 3 errors
> make: *** [mapscript_java] Error 1
> 
> =====================================================
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the MapServer-users mailing list