DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Hack OpenJDK with NetBeans IDE

Hack OpenJDK with NetBeans IDE

Vladimir Voskresensky user avatar by
Vladimir Voskresensky
·
Jun. 10, 13 · Java Zone · Interview
Like (0)
Save
Tweet
11.57K Views

Join the DZone community and get the full member experience.

Join For Free
Since recently, the OpenJDK repository contains a NetBeans project for all C/C++ parts of the OpenJDK, including Hotspot.

That means that now NetBeans IDE can easily be used to review, hack, and develop OpenJDK. Simple howto is as follows:

  • Get OpenJDK, as follows:
    #hg clone http://hg.openjdk.java.net/jdk8/build jdk_trunk
    #cd jdk_trunk
    #sh get_source.sh
    #mkdir build
    #cd build
    #sh ../configure
  • After the "configure" step is complete, remember the value assigned to "Boot JDK" and then:
    #export IDE_ALT_BOOTDIR=jdk_path_found_by_configure
    #netbeans
  • Start NetBeans IDE (with C++ support) and open projects from "common/nb_native". The project already contains configurations for Solaris, Linux, and MacOS. Just switch to the appropriate configuration and enjoy hacking OpenJDK.

Screenshots

Source tree, navigator, mark occurrences, and macro expansion:

Call graph:

"Run", which runs Java, and shows the same info as in the command line:

Integrated development environment OpenJDK NetBeans Hack (falconry)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What's the Difference Between Static Class vs. Singleton Patterns in C#?
  • 10 Programming Habits a Web Developer Should Embrace
  • 5 Myths of Kubernetes
  • ETL/ELT on Kubernetes With Airbyte

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo