Setting Up an Environment for the NetBeans Make-Based OpenJDK Projects
Take the following steps to set up Linux Ubuntu 7.0 "Feisty Fawn" in
preparation for your work with the make-based NetBeans OpenJDK projects.
For all other operating systems, see the "README-builds.html" document, which is found
in the top-level directory of your downloaded openjdk sources.
When encountering problems of any kind,
please consult the Troubleshooting Guide.
Use the Synaptic Package Manager
Install the following packages, via the Synaptic Package Manager:
- build-essential
- gawk
- libasound2-dev
- libcupsys2-dev
- libmotif-dev
- libxp-dev
- x11proto-print-dev
- xlibs-dev
Set Environment Variables
In your home directory, create a folder called
.openjdk. If
you do not create it, the IDE creates it for you the first time you
build a project. Within this folder, create a file called
build.properties.
In the
build.properties file, define the following:
- bootstrap.jdk The location of the JDK 7. When building the OpenJDK,
you will need what is called an "import JDK7 installation".
This should be the same basic version as the OpenJDK source
you are building.
- make.options
- ALT_BOOTDIR. The location of the bootstrap
JDK installation, which is a JDK 6 installation.
For build performance reasons, it is very important that
this bootstrap JDK be made available on the local disk
of the machine doing the build.
- ALT_CLOSED_JDK_IMPORT_PATH. The location of the
import JDK 7 installation.
For example:
bootstrap.jdk=/usr/jdk1.7.0
make.options=\
ALT_BOOTDIR=/home/jdk1.6.0_01 \
ALT_CLOSED_JDK_IMPORT_PATH=/use/jdk1.7.0