javatools/javacontrolpanel/controlpanel/src/javacaptain.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
child 84 0553e2305d00
--- a/javatools/javacontrolpanel/controlpanel/src/javacaptain.cpp	Wed Sep 15 12:05:25 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  JavaCaptain
-*
-*/
-
-
-#include "com_nokia_mj_impl_javacontrolpanel_JavaCaptain.h"
-
-#ifdef __SYMBIAN32__
-#include <spawn.h>
-#else
-#include <stdio.h>
-#endif
-
-#include <cstring>
-#include <errno.h>
-#include "logger.h"
-
-/*
- * Class:     com_nokia_mj_impl_javacontrolpanel_JavaCaptain
- * Method:    _start
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_com_nokia_mj_impl_javacontrolpanel_JavaCaptain__1start
-  (JNIEnv *, jobject)
-{
-    int rc = 0;
-    int pid = 0;
-    char* av[2];
-    int index = 0;
-    av[index++] = "javacaptain";
-    av[index] = NULL;
-
-#ifdef __SYMBIAN32__
-    rc = posix_spawn(&pid, "javacaptain", NULL, NULL, av, NULL);
-#else
-    if (!(pid = fork()))
-    {
-        rc = execvp("javacaptain", av);
-        if (rc == -1)
-        {
-            rc = errno;
-        }
-    }
-#endif // __SYMBIAN32__
-
-    if (rc)
-    {
-        ELOG3(EUtils,"%s failed, %s - errno=%d", __PRETTY_FUNCTION__, strerror(rc), rc);
-    }
-
-}
-