Le script fait plusieurs dizaine de mégas .....
Je poste juste la partie d'ou parait venir le message d'erreur
###########################################################################
# tlb 2001-09-18
# Moving the checking for the DISPLAY variable down here as there are
# options in the LAX that might override the need for checking the DISPLAY.
# Those options need loading before the check is performed.
# Also making sure we don't report an error when running on Mac OS X.
debugOut ""
debugOut "========= Display settings ==========================================="
#
# check the display
#
isRemoteDisplay="false"
if [ "$IS_INSTALLER" = "true" -a "$isConsole" = "false" -a "$isSilent" = "false" -a ! "$osName" = "darwin" ]; then
hostname=`hostname`
isRemoteDisplay="true"
for display in ${hostname}:0 ${hostname}:0.0 localhost:0 localhost:0.0 unix:0 unix:0.0 :0 :0.0
do
if [ "$DISPLAY" = "$display" ]; then
isRemoteDisplay="false";
fi
done
fi
xDisp="local"
if [ "$isRemoteDisplay" = "true" ]; then
xDisp="remote"
fi
if [ -z "$DISPLAY" ]; then
xDisp="not set"
fi
debugOut "X display............................... $xDisp"
if [ -z "$DISPLAY" -a "$uimode" = "gui" ]; then
debugOut "WARNING: This shell's DISPLAY variable has not been set."
debugOut "This installer is configured to run in GUI and will probably"
debugOut "fail. Try running this installer in console or silent mode,"
debugOut "or on another UNIX host which has the DISPLAY variable set,"
debugOut "if the installer unexpectedly fails."
else
if [ "$isRemoteDisplay" = "true" -a "$uimode" = "gui" ]; then
debugOut "WARNING: The name of this host ($hostname) and the setting"
debugOut "of this shell's DISPLAY ($DISPLAY) variable do not match."
debugOut "If this launcher is being displayed to a Microsoft Windows desktop"
debugOut "through X Windows the Java Virtual Machine might abort. Try running"
debugOut "this installer locally on the target system or through X Windows to"
debugOut "another UNIX host if the installer unexpectedly fails."
fi
fi
debugOut "UI mode................................. $uimode"
# MMA - clear ENV to address a problem where the shell initialization
# file (.Xshrc) pointed to by ENV may overide the classpath we have just set,
# causing the app to fail. Drawback is that other environment variables set
# in the init file will not be available in the environment (they will be
# available as Java system properties, however). Comment out the two lines
# below to change this behavior.
ENV=
export ENV
# I split these up so they would be a bit clearer on the screen.
#debugOut ""
#debugOut "========= VM Command Line ============================================"
#debugOut "CLASSPATH=$lax_class_path"
#debugOut "\"$actvm\" $options $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\" $cmdLineArgs
"
#debugOut "$command"
# Here is where we actually run the app in Java:
CLASSPATH="$lax_class_path:$CLASSPATH"; export CLASSPATH
debugOut "CLASSPATH:$CLASSPATH"
if [ "`echo $actvm | grep 'jre$'`" ]; then
cpArg="-cp"
fi
debugOut ""
unset POSIXLY_CORRECT
if [ $DO_NOT_FORK ]
then
# this is the original, it's still here for copy/paste purposes
#eval \"$actvm\" $options $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\" $cmdLineArgs
lax_class_path=\"$lax_class_path\"
if [ $cpArg ]; then
dispcommand="\"$actvm\" $options $cpArg \"$CLASSPATH\" com.hp.ov.installer.externaltools.DisplayInformat
ion \"$propfname\" \"$envPropertiesFile\""
command="\"$actvm\" $options $cpArg \"$CLASSPATH\" $lax_nl_java_launcher_main_class \"$propfname\" \"$en
vPropertiesFile\""
else
dispcommand="\"$actvm\" $options com.hp.ov.installer.externaltools.DisplayInformation \"$propfname\" \"
$envPropertiesFile\""
command="\"$actvm\" $options $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\""
fi
if [ "$uimode" = "gui" ]; then
eval $dispcommand
exitValue=$?
else
exitValue=0
fi
if [ "$exitValue" = "0" ]; then
eval $command $cmdLineArgs
else
echo "Please make sure the display is set properly..."
fi
else
debugOut "========= Forking JAVA ============================================="
if [ "$uimode" = "gui" ]; then
"$actvm" $options com.hp.ov.installer.externaltools.DisplayInformation "$propfname" "$envPropertiesFile" $cmdL
ineArgs
exitValue=$?
else
exitValue=0
fi
#
if [ "$exitValue" = "0" ]; then
if [ $cpArg ]; then
"$actvm" $options $cpArg "$CLASSPATH" $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile"
$cmdLineArgs
else
"$actvm" $options $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs
fi
else
echo "Please make sure the display is set properly..."
fi
fi
exitValue=$?
debugOut "========= JAVA Finished =============================================="
debugOut ""
# Change back to directory used priory to this script running.
cd "$olddir"
if [ -f $envPropertiesFile ] ; then
rm $envPropertiesFile 2>/dev/null
fi
rm /tmp/cbe.* 2>/dev/null
rm /tmp/sh$$.1 2>/dev/null
if [ -f $ZIPLOC/sea_loc ] ; then
rm -Rf $ZIPLOC
fi
exit 0