diff --git a/bindings/java/org/collectd/java/GenericJMXConfConnection.java b/bindings/java/org/collectd/java/GenericJMXConfConnection.java
index 9f062a9c7172ed2493234d23f93b17010fa245fe..99b140a210cbb74acba7862e115ddbb485207a66 100644 (file)
import java.util.ArrayList;
import java.util.HashMap;
import java.net.InetAddress;
+import java.net.UnknownHostException;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
environment = new HashMap ();
environment.put (JMXConnector.CREDENTIALS, credentials);
+ environment.put(JMXConnectorFactory.PROTOCOL_PROVIDER_CLASS_LOADER, this.getClass().getClassLoader());
}
try