Re: [mapserver-users] confused about mapscript java configuration

2011-05-20 Thread Umberto Nicoletti
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 ahmettemi...@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@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] confused about mapscript java configuration

2011-05-20 Thread ahmet temiz
Thank you  Umberto ,

I did.

It constructed libmapscript.so, and   mapscript.jar.

 make test passes.
But, make threadtests gave

orkun@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.nicole...@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 ahmettemi...@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@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@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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] confused about mapscript java configuration

2011-05-20 Thread Umberto Nicoletti
good catch, that's probably because of some of the recent changes in the
mapserver codebase.
please open a ticket and address it to me, i'll fix it asap.

BR,
Umberto


2011/5/20 ahmet temiz ahmettemi...@gmail.com

 Thank you  Umberto ,

 I did.

 It constructed libmapscript.so, and   mapscript.jar.

  make test passes.
 But, make threadtests gave

 orkun@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.nicole...@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 ahmettemi...@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@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@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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] confused about mapscript java configuration

2011-05-19 Thread ahmet temiz
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@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users