javaruntimes/installer/starterdll/src/main.cpp
changeset 61 bf7ee68962da
parent 48 e0d6e9bd3ca7
--- a/javaruntimes/installer/starterdll/src/main.cpp	Tue Jul 06 14:10:26 2010 +0300
+++ b/javaruntimes/installer/starterdll/src/main.cpp	Wed Aug 18 09:43:15 2010 +0300
@@ -149,6 +149,15 @@
         return INSTALLER_ALREADY_RUNNING;
     }
 
+    // Check whether executing this process during first boot.
+    ret = JavaCommonUtils::initIsFirstBoot();
+    if (0 != ret)
+    {
+        ELOG1(EJavaRuntime, 
+            "INSTALLER main() Cannot create first_boot_done.dat flag file, errno.h err %d",
+            ret);
+    }
+
     int result = -1;
     try
     {
@@ -348,6 +357,12 @@
     const int oldHeapSize = 512;
     jvm->overrideOldHeapSize(oldHeapSize);
 
+#ifdef __WINSCW__
+    // Setting smaller max heap in the emulator.
+    const int maxHeapSize = 8 * 1024; // 8 MB
+    jvm->overrideMaxHeapSize(maxHeapSize);
+#endif  // __WINSCW__
+
     jvm->enableThreadDumping();
 
     jvm->setMainClass(INSTALLER_MAIN_CLASS);
@@ -371,7 +386,7 @@
         L"com.nokia.mj.impl.installer.ui.eswt2.InstallerRuntimeUi");
 #ifdef __SYMBIAN32__
 #ifndef __WINS__
-    jvm->appendSystemProperty(L"-Dcom.nokia.mj.impl.installer.ui.disableui=1");
+    //jvm->appendSystemProperty(L"-Dcom.nokia.mj.impl.installer.ui.disableui=1");
 #endif //__WINS__
 #endif // __SYMBIAN32__
 #else // RD_JAVA_S60_RELEASE_10_1_ONWARDS