problem in running java-mapscript

orkun temiz at DEPREM.GOV.TR
Wed Oct 19 05:15:27 EDT 2005


Fernando Simon wrote:

> Hi Orkun,
>    The Java will read the lib from classpath.
>    So you need to put your lib in path that java can read, or in the 
> lib system path (if it's appear in classpath).
>    Regards
>
> ------------------------------------------------------------------------
> Fernando Simon
> Mapserver and Oracle Spatial developer
> G10 - Laboratorio de Computacao Aplicada - Brazil
> http://www.univali.br/g10 - UNIVALI/CTTMAR
> ------------------------------------------------------------------------
>
>
> orkun wrote:
>
>> hello
>>
>> I am new to java
>>
>> I am trying to run a javamapscript.
>> But I am receiving an error message :
>>
>> import edu.umn.gis.mapscript.*;
>>
>> public class jeo2 {
>>
>>    public static void main(String[] args) {
>>        try
>>                {
>>                  System.loadLibrary("libmapscript.so");
>>                }
>>                catch(UnsatisfiedLinkError ule)
>>                {
>>                  System.err.println(ule);
>>                  System.exit(-1);
>>                }
>>
>> java.lang.UnsatisfiedLinkError: no libmapscript.so in java.library.path
>> what should library path be ?
>>
>> regards
>>
>> Ahmet Temiz
>>
>>
>> ______________________________________
>> XamimeLT - installed on mailserver for domain @deprem.gov.tr
>> Queries to: postmaster at deprem.gov.tr
>> ______________________________________
>> The views and opinions expressed in this e-mail message are the 
>> sender's own
>> and do not necessarily represent the views and the opinions of 
>> Earthquake Research Dept.
>> of General Directorate of Disaster Affairs.
>>
>> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal 
>> olarak T.C.
>> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici 
>> nitelikte degildir.
>>
>
>
thank you I checked CLASSPATH again.
mapscript resides in /usr/local/ and classpath
as in Eclipse :

<classpath>
    <classpathentry kind="src" path=""/>
    <classpathentry exported="true" kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry exported="true" kind="lib" 
path="/home/orkun/work/postgresql.jar"/>
    <classpathentry exported="true" kind="lib" 
path="/usr/local/mapscript.jar" />
    <classpathentry kind="output" path=""/>
</classpath>

for instance postgresql.jar works well but mapscript does not.

there might be another problem ?

regards

______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.



More information about the mapserver-users mailing list