Skip to content

Commit

Permalink
Fix for issue #365
Browse files Browse the repository at this point in the history
  • Loading branch information
chirino committed Jun 9, 2013
1 parent f204a23 commit b55525d
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -60,8 +60,14 @@ public JVMList() {
public void init() {
try {

// let's just hit any errors we're going to hit before even creating the mbean
listLocalJVMs();
try {
// let's just hit any errors we're going to hit before even creating the mbean
listLocalJVMs();
} catch (NoClassDefFoundError e) {
// Some JVM's don't support com.sun.tools.attach.VirtualMachine
LOG.info("Local JVM discovery disabled due to: "+e);
return;
}

if (objectName == null) {
objectName = new ObjectName("io.hawt.jvm.local:type=JVMList");
Expand Down

0 comments on commit b55525d

Please sign in to comment.