Book description
Over 80 recipes to build and extend your very own version of Java platform using OpenJDK project
In Detail
OpenJDK is one of the most widely used open source implementations of the Java platform. It is used to change, customize, and tune core application internals and provide a way to extend the application internals according to your requirements.
OpenJDK Cookbook begins by introducing you to OpenJDK and IcedTea builds for various virtual machine implementations and how to deploy OpenJDK on multiple platforms. Furthermore, the book digs deeper into the development concepts, JVM internals, and techniques to make robust improvements or customizations to OpenJDK. Essentially, the book covers the best practices for accessing and using the core features of OpenJDK to build advanced Java solutions by utilizing the more complex and nuanced parts of OpenJDK.
What You Will Learn
- Set up a development environment and start hacking OpenJDK
- Understand advanced features such as adding new intrinsics to JVMs
- Build different versions of OpenJDK for different operating systems and architectures
- Write reliable tests using jtreg and get a good understanding of the tool
- Create and sub limit patches with improvements and bug fixes
- Understand valuable techniques, native code debugging, and incremental builds
- Prepare VirtualBox machines with different operating systems
- Understand the process behind JEPs
Table of contents
-
OpenJDK Cookbook
- Table of Contents
- OpenJDK Cookbook
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started with OpenJDK
-
2. Building OpenJDK 6
- Introduction
- Preparing CA certificates
- Building OpenJDK 6 on Ubuntu Linux 12.04 LTS
- Setting up the minimum build environment for the most compatible Linux builds
- Installing Cygwin for Windows builds
- Building 32-bit FreeType libraries for OpenJDK 6 on Windows
- Building 64-bit FreeType libraries for OpenJDK 6 on Windows
- Building 32-bit OpenJDK 6 on Windows 7 SP1
- Building 64-bit OpenJDK 6 on Windows 7 x64 SP1
-
3. Building OpenJDK 7
- Introduction
- Building OpenJDK 7 on Ubuntu Linux 12.04 LTS
- Building OpenJDK 7 on Mac OS X
- Building 32-bit FreeType libraries for OpenJDK 7 on Windows
- Building 64-bit FreeType libraries for OpenJDK 7 on Windows
- Building 32-bit OpenJDK 7 on Windows 7 SP1
- Building 64-bit OpenJDK 7 on Windows 7 x64 SP1
- Preparing a standalone toolchain for 32- and 64-bit Windows' builds
- 4. Building OpenJDK 8
- 5. Building IcedTea
-
6. Building IcedTea with Other VM Implementations
- Introduction
- Configuring cross-compilation between ARM and x86
- Building IcedTea for ARM with integrated CACAO VM
- Porting JamVM to use OpenJDK
- Configuring Zero-assembler with the Shark compiler to use OpenJDK
- Building for MIPS and other architectures using OpenEmbedded recipes
- 7. Working with WebStart and the Browser Plugin
-
8. Hacking OpenJDK
- Introduction
- Setting up the development environment with NetBeans
- Working with Mercurial forest
- Understanding OpenJDK 6 and 7 incremental builds
- Debugging Java code using NetBeans
- Debugging C++ code using NetBeans
- Using NetBeans to compile HotSpot
- Using HotSpot dev parameters
- Adding new intrinsic to HotSpot
- Building VisualVM from the source code
- Creating a plugin for VisualVM
- Getting benefits from the AdoptOpenJDK project
-
9. Testing OpenJDK
- Introduction
- Running tests using the downloaded or the built version of jtreg
- Building jtreg from the source
- Running the standard set of OpenJDK tests
- Writing your own test for jtreg
- Using jtreg in GUI mode
- Writing TestNG tests for jtreg
- Compiling JT Harness from the source code
- Building and running jcstress
- Writing tests for jcstress
- Creating a benchmark project using JMH
- Downloading the source and compiling JHM
- 10. Contributing to OpenJDK
- 11. Troubleshooting
- 12. Working with Future Technologies
- 13. Build Automation
- Index
Product information
- Title: OpenJDK Cookbook
- Author(s):
- Release date: January 2015
- Publisher(s): Packt Publishing
- ISBN: 9781849698405
You might also like
book
Java 11 Cookbook
Solutions for modular, functional, reactive, GUI, network, and multithreaded programming Key Features Explore the latest features …
book
Java Closures and Lambda
Java Closures and Lambda introduces you to significant new changes to the Java language coming out …
book
Introduction to JVM Languages
Explore the Java Virtual Machine with modern programming languages About This Book This guide provides in-depth …
book
Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs
completes the Apress learning Java journey and is a comprehensive approach to learning the Java programming …