Hi Ryan!!<br><br>You must add the file libmapscript.so to your tomcat shared folder.<br><br>Check <a href="http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55">http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55
</a>, here explain the correct configuration for use javamapscript<br><br><br><br><div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Ryan Ollerenshaw</b> <<a href="mailto:ollerery@engr.orst.edu">ollerery@engr.orst.edu
</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;">I am trying to use MapServer's java Mapscript and keep getting the<br>
following error:<br><br>Java.lang.UnsatisfiedLinkError: no mapscript in java.library.path<br><br>I have added mapscript.jar to my WEB-INF/lib directory, but i am not<br>sure what else i should do. I am using eclipse with the Tomcat plug in,
<br>so i have also added the .jar file to eclipse but i dont think that<br>makes a difference when using tomcat.<br><br>Here is my java code:<br><br>import java.io.*;<br>import javax.servlet.*;<br>import javax.servlet.http.*
;<br>import edu.umn.gis.mapscript.*;<br><br>public class MapServerTest extends HttpServlet {<br><br> public void doGet ( HttpServletRequest request, HttpServletResponse<br>response )<br> throws ServletException, IOException {
<br><br> response.setContentType("text/html");<br> PrintWriter out = response.getWriter();<br><br> System.loadLibrary("mapscript");<br><br> out.println("<html>");
<br> out.println("<head><title>Hello World!</title></head>");<br> out.println("<body>");<br> out.println("<h1>aa Hello, World !</h1>");
<br><br> //mapObj map = new<br>mapObj("var/www/html/mapserver/htdocs/display.map");<br> }// end doGet<br><br>}///:~<br></blockquote></div><br><br clear="all"><br>-- <br>Alejandro Rico