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> &lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt; 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 &lt;<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a>&gt; wrote:<br>
&gt; I've resolved the javac issues.<br>&gt;<br>&gt;&nbsp;&nbsp;I changed line 23 to,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shapeObj
shp = new shapeObj(<br>&gt; layer.getType().swigValue()&nbsp;&nbsp;);<br>&gt;<br>&gt;&nbsp;&nbsp;This seems to do the right thing. Now I have a libmapscript.so error.<br>&gt;<br>&gt;&nbsp;&nbsp;java.lang.UnsatisfiedLinkError:<br>&gt; /home/phil/opensource/mapserver/mapscript/java/libmapscript.so:
<br>&gt; /home/phil/opensource/mapserver/mapscript/java/libmapscript.so:<br>&gt; undefined symbol: msOWSDispatch<br>&gt;<br>&gt;&nbsp;&nbsp;Not really sure where to resolve this.<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;Phil<br>&gt;<br>&gt; On 6/2/06, Philip Mark Donaghy &lt;
<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; More info on my environment Java 1.5.0 and Linux 2.6.8 on Debian.<br>&gt; &gt;<br>&gt; &gt; Phil<br>&gt; &gt;<br>
&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On 6/2/06, Philip Mark Donaghy &lt;<a href="mailto:philip.donaghy@gmail.com">philip.donaghy@gmail.com</a> &gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I am trying out Java MapScript and I encountered the following error
<br>&gt; when I run 'make test',<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; examples/QueryByAttributeUnicode.java:23: cannot find<br>&gt; symbol<br>&gt; &gt; &gt; symbol&nbsp;&nbsp;: constructor<br>&gt; shapeObj(edu.umn.gis.mapscript.MS_LAYER_TYPE
)<br>&gt; &gt; &gt; location: class edu.umn.gis.mapscript.shapeObj<br>&gt;
&gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
shapeObj shp = new shapeObj( layer.getType()&nbsp;&nbsp;);<br>&gt; &gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>&gt; &gt; &gt; 1 error<br>&gt; &gt; &gt; make: *** [test] Error 1<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Effectivly, the shapeObj does not have a constructor with argument<br>
&gt; MS_LAYER_TYPE.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I am building using the following versions, mapserver CVS,<br>&gt; freetype-2.1.10, gdal-1.3.1, libpng-1.2.10, zlib-1.2.3, gd-2.0.33, jpeg-6b,<br>&gt; proj-?. Using the guide,
<br>&gt; <a href="http://mapserver.gis.umn.edu/docs/howto/javamapscript">http://mapserver.gis.umn.edu/docs/howto/javamapscript</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Has anyone (Umberto) done this lately?<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; Phil<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; Philip Donaghy<br>&gt; &gt; &gt; <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>&gt; &gt; &gt; Skype: philipmarkdonaghy<br>&gt; &gt; &gt; Office: +33 5 56 60 88 02<br>&gt; &gt; &gt; Mobile: +33 6 20 83 22 62<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Philip Donaghy
<br>&gt; &gt; <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>&gt; &gt; Skype: philipmarkdonaghy<br>&gt; &gt; Office: +33 5 56 60 88 02
<br>&gt; &gt; Mobile: +33 6 20 83 22 62<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Philip Donaghy<br>&gt; <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>&gt;&nbsp;&nbsp;Skype: philipmarkdonaghy<br>&gt; Office: +33 5 56 60 88 02<br>&gt; 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