simplify
Change-Id: I1f44dd938bd0033ad4a5b6af4d24d1ba3e76d852
This commit is contained in:
parent
732b8be76f
commit
3818cc5329
1 changed files with 1 additions and 2 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Reference in a new issue