diff --git a/examples/guestfs-faq.pod b/examples/guestfs-faq.pod index fed03ef66..c1c0cad57 100644 --- a/examples/guestfs-faq.pod +++ b/examples/guestfs-faq.pod @@ -150,11 +150,6 @@ To get further information about the failure, you have to run: If, after using this, you still don't understand the failure, contact us (see previous section). -=head2 "guestfs_java_callback: jvm->GetEnv failed! (JNI_* error code = -3)" - -This is caused by the JVM version being too old. JVM E 1.6 is -required. - =head2 Non-ASCII characters don't appear on VFAT filesystems. Typical symptoms of this problem: diff --git a/generator/java.ml b/generator/java.ml index 660d37a52..1fc0e3b03 100644 --- a/generator/java.ml +++ b/generator/java.ml @@ -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);