Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Happy Polyglot development and debugging with VSNetBeans! 

Scenario 3: Open OpenJDK Source

The OpenJDK sources can be directly open in VS Code using VSNetBeans.

SetUp

Follow these steps to prepare the OpenJDK sources:

  1. Clone the OpenJDK from https://github.com/openjdk/jdk
  2. configure using bash configure, and provide a path to jtreg, like using the --with-jtreg=<JTREG_HOME> option
  3. build the JDK using make images

Open Sources

To open an OpenJDK module inside VS Code, open the src/<module-name> directory. For example, to open the most basic java.base module, open src/java.base. When opening the first module, use File/Open Folder..., to open additional modules and/or tests, using File/Add Folder To Workspace... . Tests are typically in either the test/jdk or test/langtools folder.

After opening the folders, it is recommended to wait for the "Indexing Complete." messages in the status line.

Then, enjoy browsing and editing the OpenJDK sources!

Image Addedto be done...