From 0447785283fbff8ba564ddcd9437cfc4191ecc0b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 3 Jun 2014 19:33:28 +0200 Subject: [PATCH 1/1] more informative error message --- src/bindings/java/jmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/java/jmsg.c b/src/bindings/java/jmsg.c index bfc4115af6..ce3444afa8 100644 --- a/src/bindings/java/jmsg.c +++ b/src/bindings/java/jmsg.c @@ -268,7 +268,7 @@ static int create_jprocess(int argc, char *argv[]) { jclass class_Process = (*env)->FindClass(env, argv[0]); xbt_str_subst(argv[0],'/','.',0); //Retrieve the methodID for the constructor - xbt_assert((class_Process != NULL), "Class not found (%s).", argv[0]); + xbt_assert((class_Process != NULL), "Class not found (%s). The deployment file must use the fully qualified class name, including the package. The case is important.", argv[0]); jmethodID constructor_Process = (*env)->GetMethodID(env, class_Process, "", "(Lorg/simgrid/msg/Host;Ljava/lang/String;[Ljava/lang/String;)V"); xbt_assert((constructor_Process != NULL), "Constructor not found for class %s. Is there a (Host, String ,String[]) constructor in your class ?", argv[0]); -- 2.20.1