diff --git a/src/java.c b/src/java.c
index 3089a5337fdc4b21b5c592d06185789da8e72107..af0861f67673725b8e6655f176a1fafd850548e9 100644 (file)
--- a/src/java.c
+++ b/src/java.c
api_class_ptr = (*jvm_env)->FindClass (jvm_env, "org/collectd/api/Collectd");
if (api_class_ptr == NULL)
{
- ERROR ("cjni_init_native: Cannot find API class `org/collectd/api/Collectd'.");
+ ERROR ("cjni_init_native: Cannot find the API class \"org.collectd.api"
+ ".Collectd\". Please set the correct class path "
+ "using 'JVMArg \"-Djava.class.path=...\"'.");
return (-1);
}