My problem was having some other mapserver libraries installed on the system. MapScript Java is working as expected.<br>
<br>
Phil<br><br><div><span class="gmail_quote">On 6/3/06, <b class="gmail_sendername">Umberto Nicoletti</b> <<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
did you run<br>make interface<br><br>See the readme in mapscript/java.<br><br>Umberto<br><br><br><br>On 6/3/06, Philip Mark Donaghy <<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a>> wrote:<br>
> I've resolved the javac issues.<br>><br>> I changed line 23 to,<br>><br>> shapeObj
shp = new shapeObj(<br>> layer.getType().swigValue() );<br>><br>> This seems to do the right thing. Now I have a libmapscript.so error.<br>><br>> java.lang.UnsatisfiedLinkError:<br>> /home/phil/opensource/mapserver/mapscript/java/libmapscript.so:
<br>> /home/phil/opensource/mapserver/mapscript/java/libmapscript.so:<br>> undefined symbol: msOWSDispatch<br>><br>> Not really sure where to resolve this.<br>><br>><br>> Phil<br>><br>> On 6/2/06, Philip Mark Donaghy <
<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a>> wrote:<br>> ><br>> > More info on my environment Java 1.5.0 and Linux 2.6.8 on Debian.<br>> ><br>> > Phil<br>> ><br>
> ><br>> ><br>> > On 6/2/06, Philip Mark Donaghy <<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a> > wrote:<br>> > ><br>> > > I am trying out Java MapScript and I encountered the following error
<br>> when I run 'make test',<br>> > ><br>> > > examples/QueryByAttributeUnicode.java:23: cannot find<br>> symbol<br>> > > symbol : constructor<br>> shapeObj(edu.umn.gis.mapscript.MS_LAYER_TYPE
)<br>> > > location: class edu.umn.gis.mapscript.shapeObj<br>>
>
>
shapeObj shp = new shapeObj( layer.getType() );<br>> >
> ^<br>> > > 1 error<br>> > > make: *** [test] Error 1<br>> > ><br>> > > Effectivly, the shapeObj does not have a constructor with argument<br>
> MS_LAYER_TYPE.<br>> > ><br>> > > I am building using the following versions, mapserver CVS,<br>> freetype-2.1.10, gdal-1.3.1, libpng-1.2.10, zlib-1.2.3, gd-2.0.33, jpeg-6b,<br>> proj-?. Using the guide,
<br>> <a href="http://mapserver.gis.umn.edu/docs/howto/javamapscript">http://mapserver.gis.umn.edu/docs/howto/javamapscript</a><br>> > ><br>> > > Has anyone (Umberto) done this lately?<br>> > >
<br>> > > Phil<br>> > ><br>> > > --<br>> > > Philip Donaghy<br>> > > <a href="http://donaghy.blogspot.com">donaghy.blogspot.com</a> <a href="http://del.icio.us/donaghy/philip">
del.icio.us/donaghy/philip</a><br>> > > Skype: philipmarkdonaghy<br>> > > Office: +33 5 56 60 88 02<br>> > > Mobile: +33 6 20 83 22 62<br>> ><br>> ><br>> ><br>> > --<br>> > Philip Donaghy
<br>> > <a href="http://donaghy.blogspot.com">donaghy.blogspot.com</a> <a href="http://del.icio.us/donaghy/philip">del.icio.us/donaghy/philip</a><br>> > Skype: philipmarkdonaghy<br>> > Office: +33 5 56 60 88 02
<br>> > Mobile: +33 6 20 83 22 62<br>><br>><br>><br>> --<br>> Philip Donaghy<br>> <a href="http://donaghy.blogspot.com">donaghy.blogspot.com</a> <a href="http://del.icio.us/donaghy/philip">del.icio.us/donaghy/philip
</a><br>> Skype: philipmarkdonaghy<br>> Office: +33 5 56 60 88 02<br>> Mobile: +33 6 20 83 22 62<br></blockquote></div><br><br clear="all"><br>-- <br>Philip Donaghy<br><a href="http://donaghy.blogspot.com">donaghy.blogspot.com
</a> <a href="http://del.icio.us/donaghy/philip">del.icio.us/donaghy/philip</a><br>Skype: philipmarkdonaghy<br>Office: +33 5 56 60 88 02<br>Mobile: +33 6 20 83 22 62