[libbluray-devel] Log the reason for Java VM creation failure

tourettes git at videolan.org
Mon Sep 15 11:13:51 CEST 2014


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Sep 14 14:29:14 2014 +0300| [35340052c5955a4b3bce61d2674ffd704c7da536] | committer: hpi1

Log the reason for Java VM creation failure

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=35340052c5955a4b3bce61d2674ffd704c7da536
---

 src/libbluray/bdj/bdj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 754c79e..c54e7ee 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -444,7 +444,7 @@ static int _create_jvm(void *jvm_lib, const char *java_home, JNIEnv **env, JavaV
     X_FREE(option);
 
     if (result != JNI_OK || !*env) {
-        BD_DEBUG(DBG_BDJ | DBG_CRIT, "Failed to create new Java VM.\n");
+        BD_DEBUG(DBG_BDJ | DBG_CRIT, "Failed to create new Java VM. JNI_CreateJavaVM result: %d\n", result);
         return 0;
     }
 



More information about the libbluray-devel mailing list