[libbluray-devel] JAVA_HOME on windows points to the install path of the java JDK.

Erik Van Grunderbeeck git at videolan.org
Sun Mar 27 11:00:49 CEST 2011


libbluray | branch: master | Erik Van Grunderbeeck <erik at arawix.com> | Tue Mar 22 11:45:55 2011 +0100| [5ea450a6c74162d7552ae92e139c3acf6dc89eb4] | committer: hpi1

JAVA_HOME on windows points to the install path of the java JDK.

Signed-off-by: Erik Van Grunderbeeck <erik at arawix.com>

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

 src/libbluray/bdj/bdj.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 9ab8c1a..8480e6b 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -170,7 +170,11 @@ void* load_jvm()
         return NULL;
     }
 
+#ifdef WIN32
+    char* path = str_printf("%s/jre/bin/server/jvm", java_home);
+#else	//	#ifdef WIN32
     char* path = str_printf("%s/jre/lib/%s/server/libjvm", java_home, JAVA_ARCH);
+#endif	//	#ifdef WIN32
 
     return dl_dlopen(path, NULL);
 }



More information about the libbluray-devel mailing list