<br><font size=2 face="Arial">Hi</font>
<br>
<br><font size=2 face="Arial">I think you should add the directory, which
contains the DLL-files, to your PATH-Environment-Variable.</font>
<br>
<br><font size=2 face="Arial">&gt;set PATH=.\TestUML\;%PATH%</font>
<br><font size=2 face="Arial">&gt;java -classpath .\;.\mapscript.jar -Djava.library.path=.\TestUML\
DemoMain</font>
<br>
<br><font size=2 face="Arial">Benedikt</font>
<br>
<br><font size=2 face="Arial">UMN MapServer Users List &lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;
schrieb am 04.12.2006 12:50:21:<br>
<br>
&gt; Dear friends,<br>
&gt; I am trying to run a simple demo of MapServer using Java<br>
&gt; on a Windows XP Professional operating system, but unsuccesfully.<br>
&gt; <br>
&gt; Is anyone working on this system and using java with MapServer,<br>
&gt; or knowing of any issue I should work around before going ahead?<br>
&gt; Below are some of the details of my test, but please ask if I missed<br>
&gt; something could be usefull.<br>
&gt; <br>
&gt; Thank you for any help,<br>
&gt; Francesco.<br>
&gt; <br>
&gt; =============================================<br>
&gt; I am using the package &quot;ms4w_1.5.1.zip&quot;.<br>
&gt; <br>
&gt; The demo program is very basic:<br>
&gt; <br>
&gt; import edu.umn.gis.mapscript.mapObj;<br>
&gt; public class DemoMain {<br>
&gt; &nbsp; private mapObj _map = null;<br>
&gt; &nbsp; public DemoMain() {<br>
&gt; &nbsp; &nbsp; try {<br>
&gt; &nbsp; &nbsp; &nbsp; String mapFile = &quot;tutor.map&quot;;<br>
&gt; &nbsp; &nbsp; &nbsp; _map = new mapObj(mapFile);<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; catch (Throwable ex) {<br>
&gt; &nbsp; &nbsp; &nbsp; ex.printStackTrace();<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; }<br>
&gt; &nbsp; public static void main(String[] args) {<br>
&gt; &nbsp; &nbsp; try {<br>
&gt; &nbsp; &nbsp; &nbsp; DemoMain test = new DemoMain();<br>
&gt; &nbsp; &nbsp; } catch (Throwable ex) {<br>
&gt; &nbsp; &nbsp; &nbsp; ex.printStackTrace();<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; }<br>
&gt; }<br>
&gt; <br>
&gt; Now I compiled it succesfully, then I copied the &quot;dll&quot; files
I identified<br>
&gt; as necessary starting from mapscript.dll (using &quot;depender.exe&quot;)
in the<br>
&gt; &quot;TestUML&quot; subdirectory and then run the program.<br>
&gt; The files in TestUML are:<br>
&gt; -) bgd.dll<br>
&gt; -) gdal13.dll<br>
&gt; -) geotiff.dll<br>
&gt; -) iconv.dll<br>
&gt; -) libcurl.dll<br>
&gt; -) libecwj2.dll<br>
&gt; -) libmap.dll<br>
&gt; -) libmysql.dll<br>
&gt; -) libpg.dll<br>
&gt; -) libtiff.dll<br>
&gt; -) mapscript.dll<br>
&gt; -) pdflib.dll<br>
&gt; -) proj.dll<br>
&gt; -) xerces-c_2_7.dll<br>
&gt; -) zlib1.dll<br>
&gt; <br>
&gt; The command line to run the program is:<br>
&gt; &gt;java -classpath .\;.\mapscript.jar -Djava.library.path=.\TestUML\
DemoMain<br>
&gt; <br>
&gt; The result was:<br>
&gt; 1) An error window reporting that &quot;bgd.dll&quot; was not found<br>
&gt; 2) the following lines after the command line:<br>
&gt; java.lang.UnsatisfiedLinkError: C:\Demo\TestUML\mapscript.dll: Can't
find<br>
&gt; dependent libraries<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader$NativeLibrary.load(Native
Method)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.loadLibrary0(Unknown
Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.ClassLoader.loadLibrary(Unknown
Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Runtime.loadLibrary0(Unknown
Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.System.loadLibrary(Unknown
Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.mapscriptJNI.&lt;clinit&gt;(mapscriptJNI.java:22)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at edu.umn.gis.mapscript.mapObj.&lt;init&gt;(mapObj.java:312)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at DemoMain.&lt;init&gt;(DemoMain.java:9)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; at DemoMain.main(DemoMain.java:20)<br>
&gt; <br>
&gt; Thank you again for your time,<br>
&gt; Francesco.<br>
</font>