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
  • Feedback & Rating feedback
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

Debugging C++ code using NetBeans


If you plan to make changes to HotSpot or any other C++ part of OpenJDK, then it is certain that you will need to do some step-by-step debugging of the code. This recipe will explain how to set up NetBeans IDE for that purpose.

Getting ready

To get started, there are only a few things required—downloaded Open JDK sources and installed NetBeans IDE. It is assumed that the OpenJDK project is already set up and can build sources.

How to do it...

  1. The first step is to set up an executable that will run. Go to Run | Set project configuration / Customize and then Build | Make, and set build/linux-amd64-debug/hotspot/outputdir/linux_amd64_compiler2/jvmg/gamma as the build result, as shown in the following screenshot:

  2. Then select the Run option on the tree on the left had side and set Run Command as "${OUTPUT_PATH}" –version:

  3. The –version flag here is just the simplest thing you can run—get the Java version. You can later change it to whatever you want, for example, to...

Visually different images
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