Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenJDK Cookbook
  • Table Of Contents Toc
OpenJDK Cookbook

OpenJDK Cookbook

By : Kobylyanskiy, Mironchenko
4 (2)
close
close
OpenJDK Cookbook

OpenJDK Cookbook

4 (2)
By: Kobylyanskiy, Mironchenko

Overview of this book

If you are an experienced Java developer using Java 7 platform and want to get your grips on OpenJDK for Java development, this is the book for you. JDK users who wish to migrate to OpenJDK will find this book very useful.
Table of Contents (15 chapters)
close
close
14
Index

Understanding OpenJDK 6 and 7 incremental builds


The process of OpenJDK compilation is very time consuming. It is very boring, especially when one is developing a small part of the whole project, which needs full recompilation for testing purposes. To do it in a simple way and to compile only the necessary parts, there are incremental builds.

Getting ready

We need to download the OpenJDK (6 or 7) source code. You may need libmotif installed. Windows users may need to install Cygwin.

How to do it...

We will see how OpenJDK is built incrementally, avoiding adding any nasty bugs.

  1. First, let's build OpenJDK for the first time:

    make all
    
  2. This will take some time, so have a cup of tea.

  3. Then, we will build it for the second time:

    make all
    
  4. You can see from the input that nothing was actually built.

  5. Then, let's insignificantly change some source file (for example, cardTableModRefBS.cpp).

  6. Let's make OpenJDK again, but this time we will grep the output:

    make all | grep -i .cpp
    
  7. We see that, in the output, only...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenJDK Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon