[mapserver-users] confused about mapscript java configuration

ahmet temiz ahmettemiz88 at gmail.com
Fri May 20 01:49:24 PDT 2011


Thank you  Umberto ,

I did.

It constructed libmapscript.so, and   mapscript.jar.

" make test" passes.
But, "make threadtests" gave

orkun at orkun-HP:~/data/mapserver-6.0.0/mapscript/java$ make threadtests
javac -cp ./mapscript.jar -d tests/threadtest/ tests/threadtest/*.java
tests/threadtest/MapThread.java:60: cannot find symbol
symbol  : method getFeature(int,int)
location: class edu.umn.gis.mapscript.layerObj
		shapeObj shape=layer.getFeature(0,-1);
		                    ^
1 error
make: *** [threadtests] Error 1

how can I solve this problem ?

regards


20 Mayıs 2011 10:15 tarihinde Umberto Nicoletti
<umberto.nicoletti at gmail.com> yazdı:
> Ahmet,
> you gave the wrong param to with-java-include-os-name and usually it is not
> necessary to specify anything as it will correctly guess from the
> environment.
> Try this:
> set JAVA_HOME to point to the jdk (NOTE: a full JDK is required, JRE is NOT
> enough)
> run ./configure (leave with-java-include-os-name out for now)
> make
> cd mapscript/java
> make clean
> make
> HTH,
> Umberto
> 2011/5/19 ahmet temiz <ahmettemiz88 at gmail.com>
>>
>> hello
>>
>> I think I am confused about mapscript java configuration
>>
>> I added my configuration file
>> --with-java-include-os-name=$JAVA_HOME/include
>>
>> But It still cannot find "jni.h"
>>
>> I checked $JAVA_HOME:
>>
>> orkun at orkun-HP:~$ ls $JAVA_HOME/include/
>> classfile_constants.h  jawt.h  jdwpTransport.h  jni.h  jvmti.h  linux
>> // jni.h seems to exist.
>>
>>
>> what might have caused the problem ?
>>
>> regards
>> --
>> Ahmet Temiz
>> Jeoloji Müh.
>> Afet ve Acil Durum Yönetimi Başkanlığı
>> Planlama ve Zarar Azaltma Dairesi Başkanlığı
>> Bilgi ve CBS grubu
>> Eskişehir Yolu 10. km.
>> Lodumlu / Ankara
>> Tel : 0 312 2872680 / 1535
>> ________________________
>>
>> Ahmet Temiz
>> Geological Eng.
>> Information Systems - GIS Group
>> Disaster and Emergency Management
>> of Presidency
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535
________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency



More information about the MapServer-users mailing list