Java MapScript on windows

Gilbert, Antoine AGilbert at KOREM.COM
Tue Mar 27 10:34:04 EDT 2007


My mapscript.dll file is at the place designed by the error message :
C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll

If I remove the dll from that place I get this error message  :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no mapscript
in java.library.path

How I can figure what are the dlls needed by mapscript.dll ? All dlls of
the windows installation (ms4w) seems to be related to Apache

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Umberto Nicoletti
Sent: Tuesday, March 27, 2007 10:23 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript on windows

On 3/27/07, Gilbert, Antoine <AGilbert at korem.com> wrote:
> Hi
> I'm new to MapServer. I have installed the windows version and some
samples
> and this is working.
> Now what I am trying is to use Java MapScript.
> I made a Java test application (not a Web one) using mapscript.jar and
> mapscript.dll coming from
> \ms4w\Apache\cgi-bin\mapscript\java
> I m getting this error message :
> Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find
> dependent libraries

The linker is saying that the dlls mapscript.dll depends on or perhaps
mapscript.dll itself are not found in path. The solution is to add
them to the path.

Umberto



More information about the mapserver-users mailing list