From 4bc72cf837402f7fe5f7accaec5fd719b25d4475 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 30 Dec 2010 08:10:15 +0100 Subject: [PATCH] java plugin: Improve an error message. --- src/java.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.30.2