Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using NetBeans to compile HotSpot


When doing HotSpot development, it is very annoying to wait for a complete OpenJDK build to be executed. So, it makes sense to exclude other parts and compile just what we are interested in, that is, the HotSpot part. This recipe will explain how to do that.

Getting ready

The only prerequisite for this recipe is the availability of source code on the machine, and Netbeans installed, with an OpenJDK project created.

How to do it...

This is a very simple recipe to follow. If you have already completed Setting up development environment with NetBeans, the only thing which is required to be done is to change the argument hotspot_build and add another argument DEBUG_NAME=debug, the whole build command line should look like this:

build.sh hotspot-build DEBUG_NAME=debug

The Build/Make screen of the Project Properties dialog in that case will look like this:

How it works…

Luckily, there are targets created in the make configuration which only built the HotSpot bit. These...