Java Mapscript
Alejandro Rico
jarg58 at GMAIL.COM
Thu Aug 3 12:14:14 PDT 2006
Hi Ryan!!
You must add the file libmapscript.so to your tomcat shared folder.
Check http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55, here
explain the correct configuration for use javamapscript
On 8/3/06, Ryan Ollerenshaw <ollerery at engr.orst.edu> wrote:
>
> I am trying to use MapServer's java Mapscript and keep getting the
> following error:
>
> Java.lang.UnsatisfiedLinkError: no mapscript in java.library.path
>
> I have added mapscript.jar to my WEB-INF/lib directory, but i am not
> sure what else i should do. I am using eclipse with the Tomcat plug in,
> so i have also added the .jar file to eclipse but i dont think that
> makes a difference when using tomcat.
>
> Here is my java code:
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import edu.umn.gis.mapscript.*;
>
> public class MapServerTest extends HttpServlet {
>
> public void doGet ( HttpServletRequest request, HttpServletResponse
> response )
> throws ServletException, IOException {
>
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
>
> System.loadLibrary("mapscript");
>
> out.println("<html>");
> out.println("<head><title>Hello World!</title></head>");
> out.println("<body>");
> out.println("<h1>aa Hello, World !</h1>");
>
> //mapObj map = new
> mapObj("var/www/html/mapserver/htdocs/display.map");
> }// end doGet
>
> }///:~
>
--
Alejandro Rico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060803/4b14ca6c/attachment.htm>
More information about the MapServer-users
mailing list