Kaydet (Commit) 3818cc53 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

simplify

Change-Id: I1f44dd938bd0033ad4a5b6af4d24d1ba3e76d852
üst 732b8be7
......@@ -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 *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment