[Mapserver-users] java mapscript getPoints is already defined error

gabriel hunter gabrielhunterd at yahoo.com
Wed Jun 9 12:27:09 EDT 2004


--0-324196658-1086798429=:14229
Content-Type: text/plain; charset=us-ascii

Hi all,
 
I'm new to mapserver, I tried to compile java mapscript but I can't go any further without some help.
 
I followed the JavaMapScriptHowTo, but executing
 
javac edu/umn/gis/mapscript/*.java

without patching, gives an error about functions already defined:
 
setExtension and setMimetype in file outputFormatObj.java
getPoints in file symbolObj.java
 
and an "attempting to use incompatible return type" on function clone in file mapObj.java.
 
when I apply the patch I can see that change are made to files outpuFormatObj.java and mapObj.java, but no changes are made to symbolObj.java
 
so I compiled again and get:
 
symbolObj.java:207: getPoints() is already defined
 
I'm using mapserver 4.2, gdal 1.2.0b, gd 2.0.20, swig 1.3.21 on slackware 9.1
 
What can I do?
 
Thanks in advance.
 
Gabriel Hunter

		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger
--0-324196658-1086798429=:14229
Content-Type: text/html; charset=us-ascii

<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm new to mapserver, I tried to compile&nbsp;java mapscript but I can't go any further without some help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I followed the <A href="http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?JavaMapScriptHowTo">JavaMapScriptHowTo</A>, but executing</DIV>
<DIV>&nbsp;</DIV>
<DIV>javac edu/umn/gis/mapscript/*.java<BR></DIV>
<DIV>without patching,&nbsp;gives an error about functions&nbsp;already defined:</DIV>
<DIV>&nbsp;</DIV>
<DIV>setExtension and&nbsp;setMimetype&nbsp;in file outputFormatObj.java</DIV>
<DIV>getPoints in file symbolObj.java</DIV>
<DIV>&nbsp;</DIV>
<DIV>and an "attempting to use incompatible return type" on function clone in file mapObj.java.</DIV>
<DIV>&nbsp;</DIV>
<DIV>when I apply the patch I can see that change are made&nbsp;to files outpuFormatObj.java and mapObj.java, but no changes are made to symbolObj.java</DIV>
<DIV>&nbsp;</DIV>
<DIV>so I compiled again and&nbsp;get:</DIV>
<DIV>&nbsp;</DIV>
<DIV>symbolObj.java:207: getPoints() is already defined</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm using mapserver 4.2, gdal 1.2.0b, gd 2.0.20, swig 1.3.21 on slackware 9.1</DIV>
<DIV>&nbsp;</DIV>
<DIV>What can I do?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Gabriel Hunter</DIV><p>
		<hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Friends.  Fun. <a href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>
--0-324196658-1086798429=:14229--



More information about the mapserver-users mailing list