diff --git a/src/java.c b/src/java.c
index 87b189fa1d6f647174dc3f813f80bdf4f4dc8886..5fda7429864db4d4b92c70089484c02bdd3dfadd 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);
}