From: Florian Forster Date: Thu, 30 Dec 2010 07:10:15 +0000 (+0100) Subject: java plugin: Improve an error message. X-Git-Tag: collectd-4.9.5~13 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=4bc72cf837402f7fe5f7accaec5fd719b25d4475 java plugin: Improve an error message. --- diff --git a/src/java.c b/src/java.c index 87b189fa..5fda7429 100644 --- a/src/java.c +++ b/src/java.c @@ -1931,7 +1931,9 @@ static int cjni_init_native (JNIEnv *jvm_env) /* {{{ */ 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); }