Howto re-compile ony parts?

Kelly O'Hair Kelly.Ohair at Sun.COM
Fri May 9 16:58:44 UTC 2008


A common pattern people use during development (shell based)
is to:

   1. Either build the complete OpenJDK and save that as the import JDK
      or download a complete jdk7 to use as the import jdk.
      Point the env variable ALT_JDK_IMPORT_PATH at that jdk image.

   2. Build the jdk area once:
        cd jdk/make && gnumake
      This populates jdk/build/*

   3. Repeatedly edit sources and
        cd jdk/make/LOWERLEVEL && gnumake   -OR-   gnumake clean
      LOWERLEVEL could be java/awt or jpda/back or whatever
      Running jdk/build/*/bin/java should use the classes in the
      jdk/build/*/classes directory (no rt.jar or tools.jar).

Those IDE savy people might instead swap step 3 with using a NetBeans
project that is specific to some part of the jdk, like swing, etc.

The various teams will need to tell you what the LOWERLEVEL directories
are that you need to build.

Historically this incremental or selective build can get into trouble,
depends on the LOWERLEVEL you pick. But if you have problems let people
know.

-kto

Clemens Eisserer wrote:
> Hello,
> 
> Is it possible to re-compile only certain parts of the JDK?
> I would like to only re-compile the native AWT part on Unix, because a
> whole "make" takes always several minutes :-/
> 
> Thank you in advance, lg Clemens



More information about the build-dev mailing list