summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2002-12-03 10:39:07 +0000
committerJoachim Lingner <jl@openoffice.org>2002-12-03 10:39:07 +0000
commitb65573b5c2f4380e9b9689a1de47aad9fc16b190 (patch)
tree497ea6c90b70d97ab848326a63f96e7af8f6db42 /stoc
parentddf1bccaf8a2f82f7b27758f340fa39bb6b82cc6 (diff)
#105832# no applets
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javavm/jvmargs.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/stoc/source/javavm/jvmargs.cxx b/stoc/source/javavm/jvmargs.cxx
index 38ab4e29b984..1e1f194ed22d 100644
--- a/stoc/source/javavm/jvmargs.cxx
+++ b/stoc/source/javavm/jvmargs.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: jvmargs.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: jl $ $Date: 2002-11-13 16:04:59 $
+ * last change: $Author: jl $ $Date: 2002-12-03 11:39:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,6 +67,9 @@
#endif
+#ifndef _OSL_FILE_H_
+#include <osl/file.h>
+#endif
#include <string.h>
@@ -125,7 +128,13 @@ namespace stoc_javavm {
;
else if(left.equals(OUString(RTL_CONSTASCII_USTRINGPARAM("Home"))))
- _java_home = right;
+ {
+ // we need a system path and not a file URL
+ OUString usSysPath;
+ oslFileError er= osl_getSystemPathFromFileURL( right.pData, &usSysPath.pData);
+ OSL_ASSERT( er == osl_File_E_None);
+ _java_home = usSysPath;
+ }
else if(left.equals(OUString(RTL_CONSTASCII_USTRINGPARAM("VMType"))))
_vmtype = right;