Δημοσιεύτηκε: 13 Σεπ 2015, 21:07
από drakon84
Η τελευταία σελίδα είναι:
Κώδικας: Επιλογή όλων
###########################################################################
# 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"


# COMMENT ME TO REMOVE OUTPUT FROM NORMAL INSTALLER EXECUTION
if [ "$IS_INSTALLER" = "true" -a "$uimode" != "silent" ]; then
   echo ""
   echo "Launching installer..."
   echo ""
fi

# 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"
debugOut "options: $options"
# 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
   debugOut "========= Executing JAVA ============================================="
   # 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
      command="\"$actvm\" $options $cpArg \"$CLASSPATH\" $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\""
   else
      command="\"$actvm\" $options $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\""
   fi
   eval $command $cmdLineArgs
else
   debugOut "========= Forking JAVA ============================================="
   if [ $cpArg  ]; then
      exec "$actvm" $options $cpArg "$CLASSPATH" $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs
   else
      exec "$actvm" $options $lax_nl_java_launcher_main_class "$propfname" "$envPropertiesFile" $cmdLineArgs
   fi
fi
exitValue=$?
debugOut "========= JAVA Finished =============================================="
debugOut ""

#  Change back to directory used priory to this script running.

cd "$olddir"

exit $exitValue


Εγώ το εγκατέστησα στην επιφάνεια εργασίας.

Τον κώδικα τον βάζουμε μέσα σε [cοde]κώδικας[/cοde]. Επιλέγουμε το κείμενο και πατάμε το κουμπάκι Εικόνα.