Tuesday Apr 08, 2008

New & Updated Samples for VisualVM Plugin Developers

There was a big repackaging over the past weeks, for the VisualVM APIs. However, two examples are available, right now, that you can look at when migrating some plugin that you may have created previously. If you check out the sources from https://visualvm.dev.java.net/, you will find a 'samples' folder, with two samples, as you can see here:

Those are two standalone plugins for VisualVM. Just open them in the IDE, set the latest VisualVM as your platform (you probably need to create your own version of VisualVM from the sources you've checked out, by choosing "Build ZIP Distribution" on the VisualVM application in the IDE and then unzipping the generated ZIP that you'll find in the 'dist' folder). Then everything should be fine, no error marks and so on, as you can see here:

The "Hello World" sample does the same as before, except that it is now updated to the latest APIs:

The second sample, providing the "JVM capabilities" subtab that you see in the bottom right of the screenshot below, shows how a plugin can integrate into an existing tab using the new API and save/restore its data to/from Application Snapshot:

So, if you're interested in integrating your tools into VisualVM, the above are the two samples you should look at. Both will find their way into a tutorial soon.


Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« April 2008 »