javaruntimes/starterutils/src.s60/j9starters60.cpp
changeset 76 4ad59aaee882
parent 61 bf7ee68962da
equal deleted inserted replaced
69:773449708c84 76:4ad59aaee882
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    53     return new J9StarterS60();
    53     return new J9StarterS60();
    54 }
    54 }
    55 
    55 
    56 J9StarterS60::J9StarterS60()
    56 J9StarterS60::J9StarterS60()
    57 #ifdef __WINSCW__
    57 #ifdef __WINSCW__
    58         :
    58     :
    59         mVariant(0)
    59     mVariant(0)
    60 #endif // __WINSCW__
    60 #endif // __WINSCW__
    61 {
    61 {
    62     JELOG2(EJavaRuntime);
    62     JELOG2(EJavaRuntime);
    63 }
    63 }
    64 
    64 
    65 J9StarterS60::J9StarterS60(const Configuration configuration,
    65 J9StarterS60::J9StarterS60(const Configuration configuration,
    66                            const std::wstring& indetifier)
    66                            const std::wstring& indetifier)
    67 #ifdef __WINSCW__
    67 #ifdef __WINSCW__
    68         :
    68     :
    69         mVariant(0)
    69     mVariant(0)
    70 #endif // __WINSCW__
    70 #endif // __WINSCW__
    71 {
    71 {
    72     JELOG2(EJavaRuntime);
    72     JELOG2(EJavaRuntime);
    73     mConfiguration = configuration;
    73     mConfiguration = configuration;
    74     mIdentifier = indetifier;
    74     mIdentifier = indetifier;
   110                        L"com.nokia.mj.impl.rt.ui.qt.RuntimeUiQt");
   110                        L"com.nokia.mj.impl.rt.ui.qt.RuntimeUiQt");
   111 #else // RD_JAVA_UI_QT
   111 #else // RD_JAVA_UI_QT
   112     mJvmArgs.push_back(L"-Xmso16k"); // Native thread stack size.
   112     mJvmArgs.push_back(L"-Xmso16k"); // Native thread stack size.
   113     mJvmArgs.push_back(L"-Dcom.nokia.mj.impl.rt.ui="
   113     mJvmArgs.push_back(L"-Dcom.nokia.mj.impl.rt.ui="
   114                        L"com.nokia.mj.impl.rt.ui.avkon.RuntimeUiAvkon");
   114                        L"com.nokia.mj.impl.rt.ui.avkon.RuntimeUiAvkon");
   115     mJvmArgs.push_back(L"-Dcom.nokia.coreui=coreuiavkon");
       
   116 #endif // RD_JAVA_UI_QT
   115 #endif // RD_JAVA_UI_QT
   117 
   116 
   118     mJvmArgs.push_back(L"-Dfile.encoding=ISO-8859-1");
   117     mJvmArgs.push_back(L"-Dfile.encoding=ISO-8859-1");
   119     mJvmArgs.push_back(L"-Dmicroedition.connection.pkgs="
   118     mJvmArgs.push_back(L"-Dmicroedition.connection.pkgs="
   120                        L"com.nokia.mj.impl.gcf.protocol");
   119                        L"com.nokia.mj.impl.gcf.protocol");
   182 }
   181 }
   183 
   182 
   184 void J9StarterS60::doOverideHeap(const std::wstring& arg, const std::wstring& size)
   183 void J9StarterS60::doOverideHeap(const std::wstring& arg, const std::wstring& size)
   185 {
   184 {
   186     JELOG2(EJavaRuntime);
   185     JELOG2(EJavaRuntime);
   187 	std::wstring maxHeapArg(arg);
   186     std::wstring maxHeapArg(arg);
   188     maxHeapArg += size;
   187     maxHeapArg += size;
   189     maxHeapArg += L"K";
   188     maxHeapArg += L"K";
   190     mJvmArgs.push_back(maxHeapArg);
   189     mJvmArgs.push_back(maxHeapArg);
   191 }
   190 }
   192 
   191