Skip to main content
Last updated January 09, 2013 00:13, by neomatrix369
Feedicon  

JConsole


Building via CLI


To build JConsole via the command-line interface (Old Build)* perform the below actions:

Ensure both 'ant 1.8' or higher and 'gawk 4.0.1' or higher are installed under Ubuntu by performing the below commands:

 sudo apt-get install ant
 sudo apt-get install gawk

Go to the folder where the JConsole build files are:

 cd ~/sources//jdk8_tl/jdk/make/eclipse/jconsole

Change the build.properties in this folder by adding the below entries:

 javac.version.source=1.5
 javac.version.target=1.7
 basedir=/home/openjdk/sources/jdk8_tl/jdk/make/eclipse/jconsole/
 bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-x86_64-normal-server-release/images/j2sdk-image 
 make.options=\
       ARCH_DATA_MODEL=64 \
       ZIP_DEBUGINFO_FILES=0 

Perform the below action at the command prompt to start the ant build.

 ant clean build -propertyfile build.properties &> jconsoleAntBuild.log

*Note: at the time of the writing of these instructions JMX could only be built using the Old Build system, ant build and make files for the build-infra system are not yet available.

Configurating and building in Eclipse


Perform the same step as for Swing using the respective files in the ~/sources/jdk8_tl/jdk/make/eclipse/jconsole/ folder.

Amend the build.properties file a bit diferent, insert the below lines instead:

 Old Build
 #PATH to JDK8
 bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-amd64_backup/j2sdk-image
 basedir=~/sources/jdk8_tl/jdk/make/eclipse/jconsole/
 javac.version.source=1.7
 javac.version.target=1.7
 InfraBuild 
 #PATH to JDK8
 bootstrap.jdk=/home/openjdk/sources/jdk8_tl/build/linux-x64-normal-server-release/images/j2sdk-image
 basedir=~/sources/jdk8_tl/jdk/make/eclipse/jconsole/
 javac.version.source=1.7
 javac.version.target=1.7

Run the Build of JConsole project by selecting the build.xml file and right mouse click on the Run as > Ant build option.

Observe the messages in the Console tab in Eclipse and wait for sometime till the build is complete (depends on performance of your computer).


Build messages: logs

- A successful run of the ant build results in the output of the following log messages:

 jconsoleAntBuild.log


Build output: artefacts

The general JConsole build artefact can be found at ~/sources/jdk8_tl/jdk/dist/lib/jconsole.jar



Next Step


Back to How to build the JConsole project in Eclipse

 
 
Close
loading
Please Confirm
Close