[Gvsig_english] Problem with gvSIG on Debian 64 system (wrong ELFclass)
Janis Brunenieks
janis.brunenieks at gmail.com
Wed May 5 14:33:46 CEST 2010
Thank you (all) for advices.
1. I tried to run gvSIG under default (Sun) java instance using -d32 switch.
It does not work:
"Running a 32-bit JVM is not supported on this platform."
2. Assumed that java packed with gvSIG (de facto existing in
/opt/gvsig-oade-2010-1.0.0/jre but not visible using "update-alternatives
--config java") should work.
Modified gvSIG.sh - explicitly declared location of java and necessary
libraries.
Got:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/gvsig-oade-2010-1.0.0/jre/lib/i386/xawt/libmawt.so: libXext.so.6:
cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source) ....(more)
-> i.e. problem finding libXext.so.
3. Found libXext.so in a filesystem - it exists in /usr/lib. Once more
edited gvSIG.sh (explicitly including /usr/lib in LD_LIBRARY_PATH=
statement).
Got:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/gvsig-oade-2010-1.0.0/jre/lib/i386/xawt/libmawt.so: libXext.so.6: wrong
ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source) ....(more)
At the moment shell sccipt looks like:
cd "/opt/gvsig-oade-2010-1.0.0/bin/"
export GVSIG_LIBS="/opt/gvsig-oade-2010-1.0.0/libs"
export LD_LIBRARY_PATH="/usr/lib"
export LD_LIBRARY_PATH="$GVSIG_LIBS:$LD_LIBRARY_PATH"
export PROJ_LIB="./gvSIG/extensiones/org.gvsig.crs/data"
export GDAL_DATA="$GVSIG_LIBS/gdal_data"
if test ...
(unchanged part) ...
LIBRARIES=$LIBRARIES:"$i"
done
# Setup Java environment and run gvSIG.
# Java tuning settings.
MAX_HEAP=1024
INI_HEAP=1024
/opt/gvsig-oade-2010-1.0.0/jre/bin/java -d32
-Djava.library.path=/usr/lib:/opt/gvsig-oade-2010-1.0.0/libs -cp
andami.jar$LIBRARIES -Xms${INI_HEAP}M -Xmx${MAX_HEAP}M
com.iver.andami.Launcher gvSIG gvSIG/extensiones "$@"
What I'm doing wrong?
Thank you in advance.
Janis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20100505/e9b32f26/attachment.htm
More information about the Gvsig_internacional
mailing list