...
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:
- Clone the OpenJDK from https://github.com/openjdk/jdk
- configure using
bash configure,
and provide a path to jtreg, like using the--with-jtreg=<JTREG_HOME>
option - 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!
to be done...