Hi,<br><br>I'm trying to build an application with Java mapScript and tomcat 6.<br>I've got ms4w (2.2.4) and installed. I've seted up the environment variables<br><br>PATH<br>\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\s
<br>hapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce<br>00;\ms4w\Apache\cgi-bin\mapscript\java;%PATH%<br><br>GDAL_DATA<br>\ms4w\gdaldata<br><br>GDAL_DRIVER_PATH<br>\ms4w\gdalplugins<br><br>
PROJ_LIB<br>\ms4w\proj\nad<br><br>I've made an jsp page called mapScript.jsp like this<br><br><%@ page language="java" contentType="text/html; charset=ISO-8859-1"<br> pageEncoding="ISO-8859-1"%>
<br><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"><br><html><br><head><br><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<br><title>Insert title here</title><br></head><br><body><br><%<br>try { <br> System.loadLibrary("mapscript");<br> System.out.println("It's OK!");<br>} catch(Throwable t) {
<br> t.printStackTrace();<br> System.out.println("It's NOT OK!");<br>}<br>%><br></body><br></html><br><br>When i execute this page, the folowing error is showed:<br><br>java.lang.UnsatisfiedLinkError
: C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: The operating system cannot run %1 <br> at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br> at java.lang.ClassLoader.loadLibrary0(Unknown Source)<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br> at java.lang.Runtime.loadLibrary0(Unknown Source)<br> at java.lang.System.loadLibrary(Unknown Source)<br> at org.apache.jsp.mapScript_jsp._jspService(mapScript_jsp.java:64)
<br> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:384)<br> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)<br> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java
:803)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)<br> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<br> at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)<br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)<br> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br> at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:216)<br> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)<br> at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)<br> at java.lang.Thread.run(Unknown Source)<br><br>I tried to folow the adivices posted in thread Mapscript on java/J2EE/Tomcat error by Sujnana Rai but i have not success.
<br>Any other idea?<br><br>Thanks for your heIp.<br><br>Anderson Guiera