- jobject jprocess; /* the global reference to the java process instance */
- jstring jname; /* the name of the java process instance */
- const char *name; /* the C name of the process */
- const char *hostname;
- msg_process_t process; /* the native process to create */
- msg_host_t host; /* Where that process lives */
-
- hostname = env->GetStringUTFChars((jstring) jhostname, 0);
-
- /* get the name of the java process */
- jname = jprocess_get_name(jprocess_arg, env);
- if (!jname) {
- jxbt_throw_null(env,
- xbt_strdup("Internal error: Process name cannot be nullptr"));
- return;
- }
-
- /* bind/retrieve the msg host */
- host = MSG_host_by_name(hostname);
-
- if (!(host)) { /* not bound */
- jxbt_throw_host_not_found(env, hostname);
- return;
- }
-