Hi,
Here's what I did when I downloaded the binary JDK.
sed -i "s:^PATH=.*::" jdk-1_5_0_06-linux-i?86.bin
chmod -v +x jdk-1_5_0_06-linux-i?86.bin
mkdir -v -p bin
ln -v -sf /bin/true bin/more
yes | PATH=$PWD/bin:$PATH ./jdk-1_5_0_06-linux-i?86.bin
cd jdk1.5.0_06
install -v -d /opt/jdk/jdk-precompiled-1.5.0_06 &&  mv -v *
/opt/jdk/jdk-precompiled-1.5.0_06 &&  chown -v -R root:root
/opt/jdk/jdk-precompiled-1.5.0_06 &&  ln -v -sf motif21/libmawt.so
/opt/jdk/jdk-precompiled-1.5.0_06/jre/lb/i386/

In
# Begin /etc/profile.d/jdk.sh

# Set JAVA_HOME directory
JAVA_HOME=/opt/jdk/jdk
export JAVA_HOME

# Adjust PATH
pathappend ${JAVA_HOME}/bin PATH

# Auto Java Classpath Updating
# Create symlinks to this directory for auto classpath setting
AUTO_CLASSPATH_DIR=/usr/lib/classpath
if [ -z ${CLASSPATH} ]; then
CLASSPATH=.:${AUTO_CLASSPATH_DIR}
else
CLASSPATH="${CLASSPATH}:.:${AUTO_CLASSPATH_DIR}"
fi

# Check for empty AUTO_CLASSPATH_DIR
ls ${AUTO_CLASSPATH_DIR}/*.jar &> /dev/null &&
for i in ${AUTO_CLASSPATH_DIR}/*.jar
do CLASSPATH=${CLASSPATH}:"${i}"
done
export CLASSPATH

# End /etc/profile.d/jdk.sh

I consider JDK installed. So I build apache-ant-1.6.5.
I don't think I need additional libraries to satisfy the build
requirements of various packages installed using Apache Ant since I
only install for dependencies problems. Maybe it's a mistake. But I
needn't every libraries isn't it?
Well I go on without them:
patch -Np1 -i ../apache-ant-1.6.5-blfs_install-1.patch
./build.sh -Ddist.dir=/opt/ant-1.6.5 dist

STOP: I get:
Warning: JAVA_HOME environment variable not set.
If build fails because sun.* classes could not be found
you will need to set the JAVA_HOME environment variable
to the installation directory of java.
Error: JAVA_HOME is not defined correctly.
We cannot execute java
Bootstrap FAILED

I must have forgotten to install something! Or there's a environment
variable to change. But I can't determine that alone, I don't know.
Maybe you have an idea? I can search later, but just now,I don't have
enough time to do a big searching. If someone experiences this
program, it would be faster for me.
Thanks for your help and sorry to disturb you: apache then openoffice
may be my last packages. Later, I'll have a complete Linux, based on
LFS and BLFS. After that, I hope I'll not disturb you anymore.

Regards,
JP
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to