segunda-feira, 1 de maio de 2017

gvSIG com problema de java 32bits

gvSIG

Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.


/opt/jdk1.8.0_131/bin/java

Descompactar o arquivo e abrir o gvSIG.sh, comentar as linhas

239 #export FORCE_JAVA_32BITS

240 #FORCE_JAVA_32BITS=""
241 #JAVA_HOME_OTHER_ARCHITECTURE=""

Adicionar o path do java


316 if [ "$JAVA_HOME_TO_USE" = "" ] ; then
           # Try to use the java in the system path
           if ! type java >/dev/null ; then
                # java not found in the system path
                if [ "$JAVA_HOME_OTHER_ARCHITECTURE" != "" ] ; then
                        JAVA_HOME="$JAVA_HOME_OTHER_ARCHITECTURE"
                        JAVA="$JAVA_HOME/bin/java"
                        JAVA="/opt/jdk1.8.0_131/bin/java"
                        logger_warn "java $PREFERED_ARCHITECTURE not found in the system path, using $JAVA_HOME_OTHER_ARCHITECTURE"
                else
                        logger_warn "java not found in the system"
                        exit 1
                fi
        else
if [ "$(getJavaArchitecture $(type -p java))" != "$PREFERED_ARCHITECTURE" ] ; then
                      logger_warn "java $PREFERED_ARCHITECTURE not found, using $(type -p java)"
                fi
                unset JAVA_HOME
                JAVA="java"
        fi
else
        JAVA_HOME="$JAVA_HOME_TO_USE"
        #JAVA="$JAVA_HOME/bin/java"
JAVA="/opt/jdk1.8.0_131/bin/java"
fi

Nenhum comentário: