- jobject jprocess; /* the global reference to the java process instance */
- jstring jname; /* the name of the java process instance */
-
-
- /* get the name of the java process */
- jname = jprocess_get_name(jprocess_arg, env);
- if (!jname) {
- jxbt_throw_null(env, xbt_strdup("Process name cannot be nullptr"));
- return;
- }
- const char* name = env->GetStringUTFChars(jname, 0);
-
- /* bind/retrieve the msg host */
- msg_host_t host = jhost_get_native(env, jhost);
- if (!host) {
- jxbt_throw_notbound(env, "host", jhost);
- return;
- }
-