Wednesday Apr 30, 2008

If you have been active on the OpenJDK aliases, I guess this is no news to you. If not, you may be wondering why you are not able to build OpenJDK 6 or 7 on Ubuntu 8.04 Hardy Heron (HH). Well, there is one issue that was identified as the main blocker for getting a clean build on HH - default shell invoked has some issue with the way OpenJDK is generating java files from templates. The solution, which is a hack at this point in time, is to hard code the shell to use /bin/bash. The changes related to this are documented in the icedtea changeset a5c32475a2e8. When I tried this patch, it was not the only thing I had to change to get the build going on HH, though it was a good start. Here are some of the things I did:

  1. In jdk/make/java/nio/ edit Makefile to replace all $(SH) with /bin/bash
  2. Replace all #!/bin/sh at the top of the *.sh files with #!/bin/bash
With these two changes, I was able to get a clean build. Hope this helps


 

Sunday May 20, 2007

Scripts have their upside and downside. When I downloaded OpenJDK and wanted to build it, I had to read the FAQ to see what packages are needed, how to setup minimal environment variables required to build OpenJDK and where is the master Makefile. So after some trial and error, some very useful blogs and FAQ I installed all the packages needed and build sanity passed. I want to make some modifications to the workspace, and perform regular builds. Do I set up the environment variables and run the build command every time?

 To make my life easier, this is what I did (Specifically on x86 Ubuntu 7.04)

#!/bin/sh
#
# Set ALT environment variables
#
export ALT_CLOSED_JDK_IMPORT_PATH=/Projects/OpenJKD/openjdk/jdk1.7.0
export ALT_BOOTDIR=/opt/jdk1.6.0_01/
export ALT_MOTIF_DIR=/usr/OpenMotif-2.1.31

#
# Build OpenJDK
#
cd control/make
make ARCH_DATA_MODEL=32

Hope this helps someone, and if anyone has a better script that automates checking of missing packages and install them on Ubuntu along with this build script, that would be really great. Any takers?

Tuesday May 08, 2007

Today is a exciting day for us in the Java SE organization.  We completed open sourcing of JDK as promised - OpenJDK.
What is even more exciting for me is the fact that we are not only open
in opening up our source, but we are transparent in what we do, how we
do it and what it looks like. What is am referring to is the OpenJDK Quality portal. Have you seen the "Metrics"
section. We are not shy to say that we have bugs in our code, but we
encourage the community to participate, find more bugs and perhaps even
suggest a fix.

[Read More]

Friday Apr 27, 2007

I have been trying to build OpenJDK HotSpot VM on
my Windows XP machine for some time now without much success or
resource on Google. So this weekend I decided to use the rain as my
excuse to get the build going once and for ever. Good thing is that I
was able to build OpenJDK HotSpot VM
via command line as well as NetBeans using the C/C++
Pack
.

[Read More]