2N/AWorking On Java[TM] Management Extensions (JMX[TM)) Using NetBeans IDE
2N/A and workings with OpenJDK NetBeans projects.
2N/AThis README focusses on working on the OpenJDK JMX API using NetBeans IDE.
2N/A This NetBeans project for OpenJDK JMX allows you to modify, build, and test
2N/A the JMX API in a standalone manner. It can also be used to generate
2N/A the JMX API documentation for preview.
2N/A The JMX API does not contain native code. It is a pure java library.
2N/A You do not need to install all the Java SE sources to work on JMX,
2N/A you only need the following subset:
2N/A If you don't want to build the whole JDK, you will also need a
2N/A pre-built version of OpenJDK (or JDK 7). Edit your
2N/A Then from within NetBeans IDE open the JMX project, and invoke the
2N/A "Build Project" and "Test Project" target. Note that running all the
2N/A tests for JMX takes a while. The build may also fail if it doesn't
2N/A find a directory named src/${platform}. This may happen if you haven't
2N/A installed all OpenJDK sources. In this case, you can simply
2N/A create an empty directory with the name expected by the build mechanism.
2N/A Which tests are run are defined by the
jtreg.test variable declared
use JMX and we therefore recommend to run these tests too.
If you are working on a JMX fix, don't forget to create a
You can look at existing tests to see how this is done.
The set of actions defined in this project are:
- Compiles JMX API source files and puts the class files under
build/${platform}-${arch}/classes.
JMX classes instead of the built-in JDK classes you will need
to put this jar file in front of the bootclasspath:
* Generate Javadoc for Project
- Generates the JMX API Documentation under
- Runs the JMX and Management and Monitoring jtreg unit tests.
- The results are written under build/${platform}-${arch}
/jtreg/jmx and the HTML test report can be found at
- Cleans the files created by this projet under build/
Please make sure to follow carefully the governance rules documented at