One of the open sourced JDK NetBeans projects
provides the JConsole. JConsole is a GUI monitoring tool
that complies to the JMX specification. The JConsole API
provides a programmatic interface to access JConsole. Both
will be explored in this tutorial.
Building the JConsole
To build the JConsole sources, right-click the JConsole project in the
Projects window and choose Build Project. The IDE runs the Ant script for the project and shows
output in the Output window.
To view the build results, go to the Favorites window (Ctrl-3)
and browse to the "j2se" folder. Once you have added the folder,
you can see the newly created "build" and "dist" folders,
the latter containing your build output, as shown in the following image:

Generating JConsole Javadoc
When you want to access JConsole programmatically,
you can do so via the JConsole API. Before you do so,
you can generate the JConsole Javadoc. Right-click the
JConsole project and choose Generate Javadoc for Project.
The IDE's browser appears, displaying the generated Javadoc:

In the Favorites window (Ctrl-3), you can browse to
the Javadoc files, which are generated to the
j2se/build/${platform}/javadoc/jconsole
folder, as shown below:
