mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
java: Print a better error message when JVM version is too old.
This fixes commit 87d1f7714f.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user