cvs commit: hints javafromscratch.txt

timothy at timothy at
Fri Jul 19 21:34:01 PDT 2002

timothy     02/07/19 21:34:01

  Modified:    .        javafromscratch.txt
  Updates by author.
  Revision  Changes    Path
  1.3       +34 -10    hints/javafromscratch.txt
  Index: javafromscratch.txt
  RCS file: /home/cvsroot/hints/javafromscratch.txt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- javafromscratch.txt	5 Jul 2002 13:51:56 -0000	1.2
  +++ javafromscratch.txt	20 Jul 2002 04:34:01 -0000	1.3
  @@ -11,6 +11,10 @@
   Change Log:
  +	* Optmizing the build.
  +	* Added Problems and Workarounds section.
  +	* Added fix by Harald Meier.
   	* First public version.
  @@ -45,12 +49,13 @@
   Packages to download:
   	* Java 2 SDK Source <>
  -From Sun's website, download the following files:
  +>From Sun's website, download the following files:
   You will need to register at the website and agree to the "SUN COMMUNITY SOURCE
  -LICENSE" before downloading the code.
  +LICENSE" before downloading the code. Note that the file is not needed.
   The Java Source doesn't work well with locally installed mozilla and motif
   headers and requires the download of the header files from the above site where
  @@ -88,10 +93,13 @@
   Try running $JAVA_HOME/bin/java and if it reports any missing libraries, make
   appropriate links in $JAVA_HOME/jre/lib/i386.
  -Unzip all the files in this directory:
  +Unzip all the files:
  +	cd $SRC &&
   	for i in j2sdk-1_4_0-*.zip ; do unzip $i; done
   Apply the downloaded patch to fix some compilation problems.
  +	cd $SRC &&
  +	patch -Np1 -i j2sdk.patch
   Now we will set some variables required by the build.
  @@ -111,7 +119,9 @@
   	export BUILD_NUMBER=`date +%s`
   Set this variable if you don't need to build the documentation and other related
  +stuff. People have reported problems when compiling the documentation. It
  +requires rpm and even then the documentation is not built. So be a good boy/girl
  +and do an
   	export DEV_ONLY=true
   There is also a variable J2RE_ONLY which if set to true builds only the Runtime
  @@ -126,17 +136,26 @@
   The compilation will go awry if the following variables are set, so unset them.
   	unset JAVA_HOME
   	unset CLASSPATH
   I also remove any CFLAGS or CXXFLAGS settings since I don't like taking risks:)
  +Well, that was before, now I do like taking risks:)) So do the following to get
  +your CFLAGS and CXXFLAGS recognized. I have compiled with "-O3 -march=i686"
  +without problems. Also, I applied the combreloc patch to binutils:)
  +	unset CFLAGS
  +	unset CXXFLAGS
   The build also looks for a Redhat Release 6.1. Though the error is not show
  -stopping, if you want you can make a file for the duration of the build.
  -	cat "Red Hat Linux release 6.1 (LFS)" > /etc/redhat-release
  +stopping, if you want you can make a file for the duration of the build. This is
  +entirely optional, I don't create the file.
  +	echo "Red Hat Linux release 6.1 (LFS)" > /etc/redhat-release
   Now the most simple part of the build.
   	cd $SRC/control/make &&
  -The build took around 3 hours on my PIII-800.
  +The build took around 4 hours on my PIII-800.
   If anytime during the build, you would like to start from scratch, you can do a
   "make clobber" in $SRC/control/make to go back to the beginning.
  @@ -146,9 +165,9 @@
   The j2sdk-image is the built JDK, congrats:)
   	mkdir -p /opt/java &&
  -	cp -a j2sdk-image /opt/java &&
  +	cp -a j2sdk-image /opt/java/j2sdk-1.4.0-tt &&
   	cd /opt/java &&
  -	ln -s j2sdk-image j2sdk
  +	ln -s j2sdk-1.4.0-ttimage j2sdk
   Add the following to your </etc/profile> or <~/.profile>. Many programs expect
   the JAVA_HOME variable to find the JDK.
  @@ -169,7 +188,12 @@
   hint exactly to see if it works. Also, if you deviate from the hint and run into
   successes, please let me know so that I can add the same to the hint.
  +Reported Problems & Workarounds:
  +* Harald Meier reported that if there are problems, try removing the "-z defs"
  +  from LDFLAGS_COMMON from line 263 in the file
  +  $SRC/j2sdk_ori/j2se/make/common/Defs-linux.gmk.
   Don't forget to send me bug reports and enhancements so that I can keep the hint
   updated. An appropriate place to discuss problems is the blfs-support mailing
Unsubscribe: send email to listar at
and put 'unsubscribe hints' in the subject header of the message

More information about the hints mailing list