Thank you (all) for advices.<br><br>1. I tried to run gvSIG under default (Sun) java instance using -d32 switch. It does not work:<br>"Running a 32-bit JVM is not supported on this platform."<br><br>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.<br>
Modified gvSIG.sh - explicitly declared location of java and necessary libraries. <br>Got:<br><br>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<br>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br> at java.lang.ClassLoader.loadLibrary0(Unknown Source) ....(more)<br><br>-> i.e. problem finding libXext.so.<br><br>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).<br>
Got: <br><br>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<br> at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
at java.lang.ClassLoader.loadLibrary0(Unknown Source) ....(more)<br><br><br><br>At the moment shell sccipt looks like:<br><br>cd "/opt/gvsig-oade-2010-1.0.0/bin/"<br><br>export GVSIG_LIBS="/opt/gvsig-oade-2010-1.0.0/libs"<br>
export LD_LIBRARY_PATH="/usr/lib"<br>export LD_LIBRARY_PATH="$GVSIG_LIBS:$LD_LIBRARY_PATH"<br>export PROJ_LIB="./gvSIG/extensiones/org.gvsig.crs/data"<br>export GDAL_DATA="$GVSIG_LIBS/gdal_data"<br>
<br>if test ... <br>(unchanged part) ...<br> LIBRARIES=$LIBRARIES:"$i"<br>done<br><br># Setup Java environment and run gvSIG.<br><br># Java tuning settings.<br>MAX_HEAP=1024<br>INI_HEAP=1024<br><br>/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 "$@"<br>
<br>What I'm doing wrong?<br><br>Thank you in advance.<br>Janis<br>