Some time ago I downloaded BDK from Sun: it's a little while ago, but I
seem to recall three choices:win32, Solaris, and "run anywhere."

Run Anywhere makes sense to me (I run linux, OS/2 and NT) and i thought I
had that version.

What I really have is a file called BDKJul98.bin and which includes a shell
script for Solaris (was I really so stupid?) (a really tricky shell script)
that picks bits out of the rest of the file, including JRE for Solaris. It
then uses the jre to run the installer.

Havin thought about it for a while I hit on the idea of extracting the
script and fixing it: it sets the path, uses absolute paths to where
programs such as tail, dd etc live on Solaris (not the same as on Linux)
and using my Linux jre to run the installer.

After a couple of false starts I got into the installer, but then i saw
1  A blank licence (easy to agree with that)
2  blank "important information" (that's cool, can't be any).
3  Telling the installer where to install is decidedly tricky: I can't read
where it thinks it's installing.

I do see a few (quite a few) of these:
Warning: 
    Name: textfield
    Class: XmTextField
    Character '/' not supported in font.  Discarded.

Warning: 
    Name: textfield
    Class: XmTextField
    Character 'u' not supported in font.  Discarded.

Warning: 
    Name: textfield
    Class: XmTextField
    Character '/' not supported in font.  Discarded.

Cute. What do I do now? While you folk are laughing yourselves silly at my
stupidity, I'm going back to have another look at sun just in case.

If sun's not the best place to get BDK, then where?

Oh yes, I'll attach my fixed script just in case someone finds it useful:
hasn't done me any good yet.


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
#!/bin/sh

ARCHSIZE=1625742
JRESIZE=2586013
ARCHANDJRESIZE=4211755
BDK=/u/summer/BDKJul98.bin

#d17

echo "InstallAnywhere is preparing to install..."

PPWD=`pwd`

if [ -x /tmp ] ; then
        INSTBASE=/tmp/
else
        INSTBASE=./
fi

cd $INSTBASE
mkdir install.dir.$$
cd install.dir.$$
mkdir Solaris
cd Solaris
mkdir resource
cd resource

cd "$PPWD"

jreTCname="$INSTBASE"jre115req.tar.Z
jreTname="$INSTBASE"jre115req.tar
jrejavahome="$INSTBASE"jre1.1.5

JRESIZEPARAM=-"$JRESIZE"c

 blah=`tail $JRESIZEPARAM "$BDK" > $jreTCname` || \
    {
       echo "Can't run tail; cannot install."
       exit 1
       }

if [ -x /usr/bin/cksum ] ; then
    cksum=`/usr/bin/cksum $jreTCname`
    index=1
    for s in $cksum
       do
         case $index in
             1)  thesum=$s;
                 index=2;
                 ;;
             2)  thesize=$s;
                 index=3;
                 ;;
          esac
       done
    
    if expr $thesize != $JRESIZE ; then
        echo ""
        echo "The download file appears to be corrupted.  Please try"
        echo "to download again, and make sure you are using 'binary' mode."
        echo ""
        echo "Please do not attempt to install this archive file."
        exit 2
    fi
fi

cd "$INSTBASE"install.dir.$$/Solaris/resource

blah=`/usr/bin/uncompress $jreTCname` || \
   {
        echo "Can't run uncompress; cannot install."
        exit 3
   }

blah=`tar xvpf $jreTname` || \
   {
        echo "Can't run tar; cannot install."
        exit 4
   }

rm -f $jreTCname $jreTname ;

cd "$INSTBASE"install.dir.$$
mkdir InstallerData

cd "$PPWD"

archname="$INSTBASE"install.dir.$$/InstallerData/Installer+JRE.zip

ARCHANDJRESIZEPARAM=-"$ARCHANDJRESIZE"c

blah=`tail $ARCHANDJRESIZEPARAM "$BDK" > $archname` || \
   {
        echo "Can't run tail; cannot install."
        exit 5
   }

cd "$INSTBASE"install.dir.$$/InstallerData

blah=`/bin/dd if=Installer+JRE.zip of=Installer.zip bs=$ARCHSIZE count=1 ` || \
   {
        echo "Can't run dd; cannot install."
        exit 6
   }

rm Installer+JRE.zip

cd "$INSTBASE"install.dir.$$

CLSPTH=InstallerData:InstallerData/Installer.zip:Solaris/resource/jre/lib/rt.jar
jre -classpath $CLSPTH com.zerog.ia.installer.Main

cd $INSTBASE
rm -rf install.dir.$$

exit 0

Reply via email to