home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 December
/
Chip_2003-12_cd2.bin
/
oo
/
linux
/
j2re-1_4_2_02-linux-i586.bin
next >
Wrap
Text File
|
2003-10-22
|
14MB
|
51,901 lines
#!/bin/sh
PATH=/usr/bin:/bin
NODOT_VERSION=142_02
javahome=j2re1.4.2_02
PACKED_JARS="lib/rt.jar lib/jsse.jar lib/charsets.jar lib/ext/localedata.jar lib/plugin.jar javaws/javaws.jar"
LINUX_RPM=
JAVAWS_BIN=javaws/javaws
libthread_path=
localinstall=$1
diskSpaceRequired=52664
MIME_TYPE=application/x-java-jnlp-file
more <<"EOF"
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION, VERSION 1.4.2_X
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE SOFTWARE IDENTIFIED
BELOW TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS
CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE
TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY
DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU ACCEPT THE TERMS OF THE
AGREEMENT. INDICATE ACCEPTANCE BY SELECTING THE "ACCEPT" BUTTON AT THE
BOTTOM OF THE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE AGREEMENT AND THE
DOWNLOAD OR INSTALL PROCESS WILL NOT CONTINUE.
1. DEFINITIONS. "Software" means the identified above in binary form, any
other machine readable materials (including, but not limited to,
libraries, source files, header files, and data files), any updates or
error corrections provided by Sun, and any user manuals, programming
guides and other documentation provided to you by Sun under this
Agreement. "Programs" mean Java applets and applications
intended to run on the Java 2 Platform, Standard Edition (J2SETM
platform) platform on Java-enabled general purpose desktop computers
and servers.
2. LICENSE TO USE. Subject to the terms and conditions of this Agreement,
including, but not limited to the Java Technology Restrictions of the
Supplemental License Terms, Sun grants you a non-exclusive,
non-transferable, limited license without license fees to reproduce and
use internally Software complete and unmodified for the sole purpose of
running Programs. Additional licenses for developers and/or publishers
are granted in the Supplemental License Terms.
3. RESTRICTIONS. Software is confidential and copyrighted. Title to
Software and all associated intellectual property rights is retained by
Sun and/or its licensors. Unless enforcement is prohibited by
applicable law, you may not modify, decompile, or reverse engineer
Software. You acknowledge that Licensed Software is not designed or
intended for use in the design, construction, operation or maintenance
of any nuclear facility. Sun Microsystems, Inc. disclaims any express
or implied warranty of fitness for such uses. No right, title or
interest in or to any trademark, service mark, logo or trade name of
Sun or its licensors is granted under this Agreement. Additional
restrictions for developers and/or publishers licenses are set forth in
the Supplemental License Terms.
4. LIMITED WARRANTY. Sun warrants to you that for a period of ninety (90)
days from the date of purchase, as evidenced by a copy of the receipt,
the media on which Software is furnished (if any) will be free of
defects in materials and workmanship under normal use. Except for the
foregoing, Software is provided "AS IS". Your exclusive remedy and
Sun's entire liability under this limited warranty will be at Sun's
option to replace Software media or refund the fee paid for Software.
Any implied warranties on the Software are limited to 90 days. Some
states do not allow limitations on duration of an implied warranty, so
the above may not apply to you. This limited warranty gives you
specific legal rights. You may have others, which vary from state to
state.
5. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS AGREEMENT, ALL
EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
6. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO
EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT
OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR
PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY,
ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE,
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no
event will Sun's liability to you, whether in contract, tort (including
negligence), or otherwise, exceed the amount paid by you for Software
under this Agreement. The foregoing limitations will apply even if the
above stated warranty fails of its essential purpose. Some states do
not allow the exclusion of incidental or consequential damages, so some
of the terms above may not be applicable to you.
7. SOFTWARE UPDATES FROM SUN. You acknowledge that at your request or
consent optional features of the Software may download, install, and
execute applets, applications, software extensions, and updated
versions of the Software from Sun ("Software Updates"), which may
require you to accept updated terms and conditions for installation. If
additional terms and conditions are not presented on installation, the
Software Updates will be considered part of the Software and subject to
the terms and conditions of the Agreement.
8. SOFTWARE FROM SOURCES OTHER THAN SUN. You acknowledge that, by your use
of optional features of the Software and/or by requesting services that
require use of the optional features of the Software, the Software may
automatically download, install, and execute software applications from
sources other than Sun ("Other Software"). Sun makes no representations
of a relationship of any kind to licensors of Other Software. TO THE
EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE
LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED
REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE
USE OF OR INABILITY TO USE OTHER SOFTWARE, EVEN IF SUN HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. Some states do not allow the
exclusion of incidental or consequential damages, so some of the terms
above may not be applicable to you.
9. TERMINATION. This Agreement is effective until terminated. You may
terminate this Agreement at any time by destroying all copies of
Software. This Agreement will terminate immediately without notice
from Sun if you fail to comply with any provision of this Agreement.
Either party may terminate this Agreement immediately should any
Software become, or in either party's opinion be likely to become, the
subject of a claim of infringement of any intellectual property right.
Upon Termination, you must destroy all copies of Software.
10. EXPORT REGULATIONS. All Software and technical data delivered under
this Agreement are subject to US export control laws and may be subject
to export or import regulations in other countries. You agree to
comply strictly with all such laws and regulations and acknowledge that
you have the responsibility to obtain such licenses to export,
re-export, or import as may be required after delivery to you.
11. TRADEMARKS AND LOGOS. You acknowledge and agree as between you and Sun
that Sun owns the SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET
trademarks and all SUN, SOLARIS, JAVA, JINI, FORTE, and iPLANET-related
trademarks, service marks, logos and other brand designations ("Sun
Marks"), and you agree to comply with the Sun Trademark and Logo Usage
Requirements currently located at
http://www.sun.com/policies/trademarks. Any use you make of the Sun
Marks inures to Sun's benefit.
12. U.S. GOVERNMENT RESTRICTED RIGHTS. If Software is being acquired by or
on behalf of the U.S. Government or by a U.S. Government prime
contractor or subcontractor (at any tier), then the Government's rights
in Software and accompanying documentation will be only as set forth in
this Agreement; this is in accordance with 48 CFR 227.7201 through
227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48
CFR 2.101 and 12.212 (for non-DOD acquisitions).
13. GOVERNING LAW. Any action related to this Agreement will be governed
by California law and controlling U.S. federal law. No choice of law
rules of any jurisdiction will apply.
14. SEVERABILITY. If any provision of this Agreement is held to be
unenforceable, this Agreement will remain in effect with the provision
omitted, unless omission would frustrate the intent of the parties, in
which case this Agreement will immediately terminate.
15. INTEGRATION. This Agreement is the entire agreement between you and
Sun relating to its subject matter. It supersedes all prior or
contemporaneous oral or written communications, proposals,
representations and warranties and prevails over any conflicting or
additional terms of any quote, order, acknowledgment, or other
communication between the parties relating to its subject matter during
the term of this Agreement. No modification of this Agreement will be
binding, unless in writing and signed by an authorized representative
of each party.
SUPPLEMENTAL LICENSE TERMS
These Supplemental License Terms add to or modify the terms of the Binary
Code License Agreement. Capitalized terms not defined in these Supplemental
Terms shall have the same meanings ascribed to them in the Binary Code
License Agreement . These Supplemental Terms shall supersede any
inconsistent or conflicting terms in the Binary Code License Agreement, or
in any license contained within the Software.
A. Software Internal Use and Development License Grant. Subject to the
terms and conditions of this Agreement, including, but not limited to
the Java Technology Restrictions of these Supplemental Terms, Sun
grants you a non-exclusive, non-transferable, limited license without
fees to reproduce internally and use internally the Software complete
and unmodified for the purpose of designing, developing, and testing
your Programs.
B. License to Distribute Software. Subject to the terms and conditions of
this Agreement, including, but not limited to the Java Technology
Restrictions of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license without fees to
reproduce and distribute the Software, provided that (i) you distribute
the Software complete and unmodified (unless otherwise specified in the
applicable README file) and only bundled as part of, and for the sole
purpose of running, your Programs, (ii) the Programs add significant
and primary functionality to the Software, (iii) you do not distribute
additional software intended to replace any component(s) of the
Software (unless otherwise specified in the applicable README file),
(iv) you do not remove or alter any proprietary legends or notices
contained in the Software, (v) you only distribute the Software subject
to a license agreement that protects Sun's interests consistent with
the terms contained in this Agreement, and (vi) you agree to defend and
indemnify Sun and its licensors from and against any damages, costs,
liabilities, settlement amounts and/or expenses (including attorneys'
fees) incurred in connection with any claim, lawsuit or action by any
third party that arises or results from the use or distribution of any
and all Programs and/or Software.
C. License to Distribute Redistributables. Subject to the terms and
conditions of this Agreement, including but not limited to the Java
Technology Restrictions of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license without fees to
reproduce and distribute those files specifically identified as
redistributable in the Software "README" file ("Redistributables")
provided that: (i) you distribute the Redistributables complete and
unmodified (unless otherwise specified in the applicable README file),
and only bundled as part of Programs, (ii) you do not distribute
additional software intended to supersede any component(s) of the
Redistributables (unless otherwise specified in the applicable README
file), (iii) you do not remove or alter any proprietary legends or
notices contained in or on the Redistributables, (iv) you only
distribute the Redistributables pursuant to a license agreement that
protects Sun's interests consistent with the terms contained in the
Agreement, (v) you agree to defend and indemnify Sun and its licensors
from and against any damages, costs, liabilities, settlement amounts
and/or expenses (including attorneys' fees) incurred in connection with
any claim, lawsuit or action by any third party that arises or results
from the use or distribution of any and all Programs and/or Software.
D. Java Technology Restrictions. You may not modify the Java Platform
Interface ("JPI", identified as classes contained within the "java"
package or any subpackages of the "java" package), by creating
additional classes within the JPI or otherwise causing the addition to
or modification of the classes in the JPI. In the event that you
create an additional class and associated API(s) which (i) extends the
functionality of the Java platform, and (ii) is exposed to third party
software developers for the purpose of developing additional software
which invokes such additional API, you must promptly publish broadly an
accurate specification for such API for free use by all developers.
You may not create, or authorize your licensees to create, additional
classes, interfaces, or subpackages that are in any way identified as
"java", "javax", "sun" or similar convention as specified by Sun in any
naming convention designation.
E. Source Code. Software may contain source code that, unless expressly
licensed for other purposes, is provided solely for reference purposes
pursuant to the terms of this Agreement. Source code may not be
redistributed unless expressly provided for in this Agreement.
F. Third Party Code. Additional copyright notices and license terms
applicable to portions of the Software are set forth in the
THIRDPARTYLICENSEREADME.txt file. In addition to any terms and
conditions of any third party opensource/freeware license identified in
the THIRDPARTYLICENSEREADME.txt file, the disclaimer of warranty and
limitation of liability provisions in paragraphs 5 and 6 of the Binary
Code License Agreement shall apply to all Software in this
distribution.
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#135002/Form ID#011801)
EOF
agreed=
while [ x$agreed = x ]; do
echo
echo "Do you agree to the above license terms? [yes or no] "
read reply leftover
case $reply in
y* | Y*)
agreed=1;;
n* | N*)
echo "If you don't agree to the license you can't install this software";
exit 1;;
esac
done
outname=install.sfx.$$
diskSpace=`df -k . | tail -1 | awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
if [ $diskSpace -lt $diskSpaceRequired ]; then
printf "You will need atleast %s kBytes of Disk Free\n" $diskSpaceRequired
printf "Please free up the required Disk Space and try again\n"
exit 3
fi
trap 'rm -f $outname; exit 1' HUP INT QUIT TERM
echo "Unpacking..."
tail +424 $0 > $outname
if [ -x /usr/bin/sum ] ; then
echo "Checksumming..."
sum=`/usr/bin/sum $outname`
index=1
for s in $sum
do
case $index in
1) sum1=$s;
index=2;
;;
2) sum2=$s;
index=3;
;;
esac
done
if expr $sum1 != 17348 || expr $sum2 != 13808 ; then
echo "The download file appears to be corrupted. Please refer"
echo "to the Troubleshooting section of the Installation"
echo "Instructions on the download page for more information."
echo "Please do not attempt to install this archive file."
exit 1
fi
else
echo "Can't find /usr/bin/sum to do checksum. Continuing anyway."
fi
chmod +x $outname
echo "Extracting..."
./$outname
rm -f $outname #we dont need it anymore, so conserve disk space
if [ -z "$LINUX_RPM" ]; then
UNPACK_CMD=""
if [ -f $javahome/lib/unpack ]; then
UNPACK_CMD=$javahome/lib/unpack
chmod +x $UNPACK_CMD
packerror=""
for i in $PACKED_JARS; do
if [ -f $javahome/`dirname $i`/`basename $i .jar`.pack ]; then
printf "Creating %s\n" $javahome/$i
$UNPACK_CMD $javahome/`dirname $i`/`basename $i .jar`.pack $javahome/$i
if [ ! -f $javahome/$i ]; then
printf "Failed to unpack jar files %s. Please refer\n" $i
printf "to the Troubleshooting section of the Installation\n"
printf "Instructions on the download page for more information.\n"
packerror="1"
fi
rm -f $javahome/`dirname $i`/`basename $i .jar`.pack
fi
done
rm -f $UNPACK_CMD
if [ x$packerror = x1 ]; then
printf "ERROR: Installation failed. Please refer to the "
printf "Troubleshooting Section of the Installation "
printf "Instructions on the download page "
if [ -d $javahome ]; then
/bin/rm -rf $javahome
exit 2
fi
fi
fi
if [ -n "$libthread_path" ] && [ -f "$libthread_path/`uname -r`/libthread.so.1" ]; then
echo "Making libthread links"
ln -s `uname -r`/libthread.so.1 $libthread_path/libthread.so.1
ln -s libthread.so.1 $libthread_path/libthread.so
fi
userid=`expr "\`id\`" : ".*uid=[0-9]*(\(.[0-9a-z]*\)) .*"`
if [ -f $HOME/.java/properties$NODOT_VERSION ]; then
if [ x$userid = "xroot" ] ; then
su $USER -c "mv -f $HOME/.java/properties$NODOT_VERSION $HOME/.java/_properties$NODOT_VERSION"
else
mv -f $HOME/.java/properties$NODOT_VERSION $HOME/.java/_properties$NODOT_VERSION
fi
fi
if [ ! x$javahome = "x" ]; then
PREFS_LOCATION=$javahome
if [ x$userid = "xroot" ] ; then
if [ x$localinstall = "x-localinstall" ] ; then
PREFS_LOCATION=/etc/.java
fi
fi
if [ ! -d $PREFS_LOCATION ] ; then
mkdir -m 755 $PREFS_LOCATION
fi
if [ ! -d $PREFS_LOCATION/.systemPrefs ] ; then
mkdir -m 755 $PREFS_LOCATION/.systemPrefs
fi
if [ ! -f $PREFS_LOCATION/.systemPrefs/.system.lock ] ; then
touch $PREFS_LOCATION/.systemPrefs/.system.lock
chmod 644 $PREFS_LOCATION/.systemPrefs/.system.lock
fi
if [ ! -f $PREFS_LOCATION/.systemPrefs/.systemRootModFile ] ; then
touch $PREFS_LOCATION/.systemPrefs/.systemRootModFile
chmod 644 $PREFS_LOCATION/.systemPrefs/.systemRootModFile
fi
fi
if [ -n "$JAVAWS_BIN" -a -z "$JAVAWS_PRIVATE" ]; then
FULLJAVAHOME=`cd $javahome; pwd`
if [ -w ${HOME}/.mailcap ]; then
jGrep=`grep -n ${MIME_TYPE} ${HOME}/.mailcap`
if [ -n "$jGrep" ] ; then
grep -v ${MIME_TYPE} < ${HOME}/.mailcap | grep -v "# Java Web Start" > /tmp/.mailcap1
mv /tmp/.mailcap1 ${HOME}/.mailcap
fi
# Doesn't contain application/x-java-jnlp-file file, add it.
echo "# Java Web Start" >> ${HOME}/.mailcap
echo "${MIME_TYPE}; $FULLJAVAHOME/$JAVAWS_BIN %s" >> ${HOME}/.mailcap
elif [ -w ${HOME}/ ]; then
# .mailcap doesn't exist, create it.
echo "# Java Web Start" > ${HOME}/.mailcap
echo "${MIME_TYPE}; $FULLJAVAHOME/$JAVAWS_BIN %s" >> ${HOME}/.mailcap
fi
if [ -w ${HOME}/.mime.types ]; then
# the file exists, make sure it contains jnlp
jGrep=`grep ${MIME_TYPE} ${HOME}/.mime.types`
if [ -z "${jGrep}" ]; then
# doesn't contain Javaws, add it
echo "type=${MIME_TYPE} desc=\"Java Web Start\" exts=\"jnlp\"" >> ${HOME}/.mime.types
fi
elif [ -w ${HOME}/ ]; then
# Doesn't exist so create it, even though if it doesn't exist it
# implies you are not using Communicator, but we'll create it on the
# chance that you do install Communicator.
echo '#--Netscape Communications Corporation MIME Information' > \
${HOME}/.mime.types
echo '#Do not delete the above line. It is used to identify the file type.' \
>> ${HOME}/.mime.types
echo '#mime types added by Netscape Helper' >> ${HOME}/.mime.types
echo 'type=application/x-java-jnlp-file desc="Java Web Start" exts="jnlp"' \
>> ${HOME}/.mime.types
fi
fi
fi
echo "Done."
exit 0
ELF Pì4 ░ 4