java: Print a better error message when JVM version is too old.

This fixes commit 87d1f7714f.
This commit is contained in:
Richard W.M. Jones
2013-02-15 14:25:25 +00:00
parent 87d1f7714f
commit 5c6895bda1
2 changed files with 5 additions and 5 deletions

View File

@@ -652,6 +652,11 @@ guestfs_java_callback (guestfs_h *g,
__func__, event, event_handle);
return;
case JNI_EVERSION:
fprintf (stderr, \"%%s: event %%\" PRIu64 \" (eh %%d) failed because the JVM version is too old. JVM >= 1.6 is required.\\n\",
__func__, event, event_handle);
return;
default:
fprintf (stderr, \"%%s: jvm->GetEnv failed! (JNI_* error code = %%d)\\n\",
__func__, r);