Change-Id: I1f44dd938bd0033ad4a5b6af4d24d1ba3e76d852
This commit is contained in:
Stephan Bergmann 2014-07-01 12:26:51 +02:00
parent 732b8be76f
commit 3818cc5329

View file

@ -635,10 +635,9 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
#if defined UNX && !defined MACOSX
//Setting the JAVA_HOME is needed for awt
OUString javaHome("JAVA_HOME");
OUString sPathLocation;
osl_getSystemPathFromFileURL(pInfo->sLocation, & sPathLocation.pData);
osl_setEnvironment(javaHome.pData, sPathLocation.pData);
osl_setEnvironment(OUString("JAVA_HOME").pData, sPathLocation.pData);
#endif
typedef jint JNICALL JNI_CreateVM_Type(JavaVM **, JNIEnv **, void *);