από drakon84 » 13 Σεπ 2015, 21:07
Η τελευταία σελίδα είναι:
- Κώδικας: Επιλογή όλων
###########################################################################
# 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 "[7m========= Display settings ===========================================[0m"
#
# 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 "[1mWARNING: 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.[0m"
else
if [ "$isRemoteDisplay" = "true" -a "$uimode" = "gui" ]; then
debugOut "[1mWARNING: 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.[0m"
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 "[7m========= VM Command Line ============================================[0m"
#debugOut "CLASSPATH=$lax_class_path"
#debugOut "[1m\"$actvm\" $options $lax_nl_java_launcher_main_class \"$propfname\" \"$envPropertiesFile\" $cmdLineArgs[0m"
#debugOut "[1m$command[0m"
debugOut "[1moptions:[0m $options"
# Here is where we actually run the app in Java:
CLASSPATH="$lax_class_path:$CLASSPATH"; export CLASSPATH
debugOut "[7mCLASSPATH:[0m$CLASSPATH"
if [ "`echo $actvm | grep 'jre$'`" ]; then
cpArg="-cp"
fi
debugOut ""
unset POSIXLY_CORRECT
if [ $DO_NOT_FORK ]
then
debugOut "[7m========= Executing JAVA =============================================[0m"
# 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 "[7m========= Forking JAVA =============================================[0m"
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 "[7m========= JAVA Finished ==============================================[0m"
debugOut ""
# Change back to directory used priory to this script running.
cd "$olddir"
exit $exitValue
Εγώ το εγκατέστησα στην επιφάνεια εργασίας.
Τον κώδικα τον βάζουμε μέσα σε [cοde]κώδικας[/cοde]. Επιλέγουμε το κείμενο και πατάμε το κουμπάκι .
Τελευταία επεξεργασία από
fog και 13 Σεπ 2015, 21:43, έχει επεξεργασθεί 1 φορά/ες συνολικά
Αιτία: Τοποθέτηση κώδικα σε [code] bbcode και alert
1 Γνώσεις Linux: Καθόλου ┃ Προγραμματισμού: Κάτι λίγα από JAVA ┃ Αγγλικών: Ικανοποιητικό
2 Ubuntu 14.04 trusty 3.13.0-63-generic 64bit (el_GR.UTF-8, Unity ubuntu), Ubuntu 3.13.0-62-generic, Windows 7, Windows 7
3 Pentium Dual-Core CPU T4300 2.10GHz ‖ RAM 3948 MiB ‖ Acer JV50 - Acer Aspire 5738
4 Advanced Micro Devices, Inc. [AMD/ATI] RV710/M92 [Mobility Radeon HD 4530/4570/545v] [1002:9553] {radeon}
5 eth0: Broadcom NetXtreme BCM5764M Gigabit Ethernet PCIe [14e4:1684] (rev 10) ⋮