Installing j2sdk-1.4.2

Tushar Teredesai tushar at linuxfromscratch.org
Tue Jul 15 23:29:21 PDT 2003


Matthew Burgess wrote:

>Hello again all.  I just thought I'd let you all know that j2sdk-1.4.2
>(binary I know) works like a charm once the commands in the book are
>altered slightly.
>
>Here's the current script I've used with success with some comments
>embedded just in case anyone else feels like installing it at some
>point:
>  
>
I found an easier way to do it, hopefully something that won't need to 
be changed for future releases.

    VERSION=1.4.2
    P=j2sdk
    MV=`echo $VERSION | cut -d "_" -f 1,1`
    V=`echo $VERSION | sed -e "s/\./_/g"`
    sed -i "s:^PATH=.*::" $P-$V-linux-i?86.bin
    chmod +x $P-$V-linux-i?86.bin
    mkdir bin
    ln -sf `which true` bin/more
    PATH_SAVE=$PATH
    export PATH=$PWD/bin:$PATH
    yes | ./$P-$VERSION.sh
    export PATH=$PATH_SAVE
    rm -rf /opt/j2sdk/j2sdk-precompiled-$MV
    mv ${P}${VERSION} /opt/j2sdk/j2sdk-precompiled-$MV


-- 
Tushar Teredesai
   http://www.linuxfromscratch.org/~tushar/
   http://www.geocities.com/tushar/


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list