jxbt_throw_host_failure(env,NULL);
break;
default:
- jxbt_throw_native(env,bprintf("communication failed"));
+ jxbt_throw_native(env,xbt_strdup("communication failed"));
}
}
rv = MSG_main();
XBT_DEBUG("Done running MSG_MAIN");
jxbt_check_res("MSG_main()", rv, MSG_OK,
- bprintf
- ("unexpected error : MSG_main() failed .. please report this bug "));
+ xbt_strdup("unexpected error : MSG_main() failed .. please report this bug "));
XBT_INFO("MSG_main finished; Cleaning up the simulation...");
/* Cleanup java hosts */
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.");
+ xbt_assert((class_Process != NULL), "Class not found (%s).", argv[0]);
jmethodID constructor_Process = (*env)->GetMethodID(env, class_Process, "<init>", "(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]);