Hi Umberto, thanks for the reply.

   Silly me forgot to mention I had already tried with -d64 flag, only
to be greeted with a "Running a 64-bit JVM is not supported on this
platform.".
   But all is fine now: I guess a good night asleep jumpstarted the
neurons back,  'cause driving to work this morning it hit me: the JVM  I
am using is 32 bits.
   So I downloaded the 64bits JDK and lo and behold: it's alive again.

   Sometimes *obvious* smacks you in the face and you still cant see it.
   I'll get me coat and leave the building now.

   Thanks.
   Rodrigo


ps: I am forwarding this to the list for posterity's sake.

--

*Rodrigo Del C. Andrade*
/Programador/
/SIC - SSE - Soluções Segurança Pública/

*DÍGITRO TECNOLOGIA*
*E-mail:* [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
*Fone:* +55 48 3281-7314 / +55 48 3281-7000
*Fax:* +55 48 3281-7299
*Site:* www.digitro.com <http://www.digitro.com>

Umberto Nicoletti wrote:
Try to run one of the examples and add this command line option to java:

-d64

Example:
java -d64 -classpath ./:examples/:./mapscript.jar
-Djava.library.path=. DumpShp ../../tests/point.shp

 google is your friend, found this searching for ELFCLASS64

http://forum.java.sun.com/thread.jspa?threadID=5072865

Umberto

On 10/15/07, Rodrigo Del C. Andrade <[EMAIL PROTECTED]> wrote:
     Hello dear list.

     I was given a new machine to develop on and I am trying to get Java
mapscript to run on AMD64, Fedora Core 7 64bits, but I am getting a nasty
error when I try to 'make test' after compiling JavaMapscript (Mapserver
4.1x series, from svn revision 6176. I havent had time to give 5.0 a go yet)
:

 [EMAIL PROTECTED] java]# make test
 javac -classpath ./:examples/:./mapscript.jar -d examples/
examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java
examples/MakePoint.java examples/QueryByAttribute.java
examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java
examples/RunTimeBuiltWMSClient.java
 javac -encoding iso-8859-15 -classpath ./:examples/:./mapscript.jar -d
examples/ examples/QueryByAttributeUnicode.java
 java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp
../../tests/point.shp
 java.lang.UnsatisfiedLinkError:
/home/home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so:
/home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so:
wrong ELF class: ELFCLASS64
 make: *** [test] Error 255

     I am compiling mapsserver with

     ./configure \
    --prefix=$MAPSERVER_HOME \
    --without-pdf \
    --with-threads \
    --with-png=/home2/mapserver/libpng \
    --with-freetype=/home2/mapserver/freetype \
    --with-gd=/home2/mapserver/gd \
    --with-geos=/home2/mapserver/geos/bin/geos-config \
    --with-ogr=/home2/mapserver/gdal/bin/gdal-config \
    --with-gdal=/home2/mapserver/gdal/bin/gdal-config \
    --with-proj=/home2/mapserver/proj4 \
    --with-wfs \
    --with-wcs \
    --with-wmsclient \
    --with-wfsclient \

     after successfully building luibPNG, FreeType, GD, GEOS and GDAL to the
directories you can see on the configure line above, and I am using java
1.6.0.
     I gotta admit I am new to this 64 bits business, but I looked around
and found references to compiling stuff with a -fPIC flag, so I went back
and recompiled everything manually adding a -fPIC to the compiler flags in
every Makefile along the way, but I still got the same error.
     Does anyone got a clue about this?

     Thanks!


--

 Rodrigo Del C. Andrade
 Programador
 SIC - SSE - Soluções Segurança Pública

 DÍGITRO TECNOLOGIA
 E-mail: [EMAIL PROTECTED]
 Fone: +55 48 3281-7314 / +55 48 3281-7000
 Fax: +55 48 3281-7299
 Site: www.digitro.com





<http://www.digitro.com>

Reply via email to