Index: scilab-5.3.3/bin/scilab
===================================================================
--- scilab-5.3.3.orig/bin/scilab	2012-05-18 17:33:59.000000000 +0200
+++ scilab-5.3.3/bin/scilab	2012-05-18 17:54:51.396364815 +0200
@@ -451,7 +451,6 @@
                             proc="amd64"
                             ;;
                         i?86)
-
                             if test -d ${JRE_HOME}/lib/$(uname -m) ; then
                                 proc=$(uname -m)
                             else
@@ -540,7 +539,16 @@
     if test ! -f $LIBJAVA; then
         if test $SCIVERBOSE -ne 0; then
             echo "Cannot find $LIBJAVA"
+	    echo "Check if we are running Scilab with a 32 bits userland and 64 bits kernel"
         fi
+	proc="i686"
+	LIBJAVA="$JRE_HOME/lib/$proc/$JAVA_SHLIB"
+	if test ! -f $LIBJAVA; then
+            echo "Cannot find $LIBJAVA again"
+	    echo "Scilab will probably crash. Try scilab-cli to have Scilab without Java"
+	fi
+	
+
     else
         CLASSPATH="${CLASSPATH:+:$CLASSPATH}$SCI/modules/core/jar/org.scilab.modules.core.jar"
         # @TODO This is the default path of the official sun JVM.
Index: scilab-5.3.3/bin/scilab-adv-cli
===================================================================
--- scilab-5.3.3.orig/bin/scilab-adv-cli	2012-05-18 17:33:59.000000000 +0200
+++ scilab-5.3.3/bin/scilab-adv-cli	2012-05-18 17:54:51.396364815 +0200
@@ -451,7 +451,6 @@
                             proc="amd64"
                             ;;
                         i?86)
-
                             if test -d ${JRE_HOME}/lib/$(uname -m) ; then
                                 proc=$(uname -m)
                             else
@@ -540,7 +539,16 @@
     if test ! -f $LIBJAVA; then
         if test $SCIVERBOSE -ne 0; then
             echo "Cannot find $LIBJAVA"
+	    echo "Check if we are running Scilab with a 32 bits userland and 64 bits kernel"
         fi
+	proc="i686"
+	LIBJAVA="$JRE_HOME/lib/$proc/$JAVA_SHLIB"
+	if test ! -f $LIBJAVA; then
+            echo "Cannot find $LIBJAVA again"
+	    echo "Scilab will probably crash. Try scilab-cli to have Scilab without Java"
+	fi
+	
+
     else
         CLASSPATH="${CLASSPATH:+:$CLASSPATH}$SCI/modules/core/jar/org.scilab.modules.core.jar"
         # @TODO This is the default path of the official sun JVM.
Index: scilab-5.3.3/bin/scilab-cli
===================================================================
--- scilab-5.3.3.orig/bin/scilab-cli	2012-05-18 17:33:59.000000000 +0200
+++ scilab-5.3.3/bin/scilab-cli	2012-05-18 17:54:51.396364815 +0200
@@ -451,7 +451,6 @@
                             proc="amd64"
                             ;;
                         i?86)
-
                             if test -d ${JRE_HOME}/lib/$(uname -m) ; then
                                 proc=$(uname -m)
                             else
@@ -540,7 +539,16 @@
     if test ! -f $LIBJAVA; then
         if test $SCIVERBOSE -ne 0; then
             echo "Cannot find $LIBJAVA"
+	    echo "Check if we are running Scilab with a 32 bits userland and 64 bits kernel"
         fi
+	proc="i686"
+	LIBJAVA="$JRE_HOME/lib/$proc/$JAVA_SHLIB"
+	if test ! -f $LIBJAVA; then
+            echo "Cannot find $LIBJAVA again"
+	    echo "Scilab will probably crash. Try scilab-cli to have Scilab without Java"
+	fi
+	
+
     else
         CLASSPATH="${CLASSPATH:+:$CLASSPATH}$SCI/modules/core/jar/org.scilab.modules.core.jar"
         # @TODO This is the default path of the official sun JVM.
