String cmd = SmartFrogPreferencePage.getRmiLocation() + ISmartFrogConstants.FILE_SEPARATOR + "rmic" + ISmartFrogConstants.WHITE_SPACE + "-classpath " + mClassPath + Util.getClassSeparator() + binDir + ISmartFrogConstants.WHITE_SPACE + DESTINATION_OPTION + binDir + ISmartFrogConstants.WHITE_SPACE + fileStr + "";  Process mProcess = Runtime.getRuntime().exec(cmd, null,
String cmds[] = new String[6]; cmds[0]=  SmartFrogPreferencePage.getRmiLocation() + ISmartFrogConstants.FILE_SEPARATOR + "rmic" ; cmds[1] = "-classpath"; cmds[2] = mClassPath + Util.getClassSeparator() + binDir; cmds[3] = DESTINATION_OPTION; cmds[4] = binDir ; cmds[5] = fileStr; Process mProcess = Runtime.getRuntime().exec(cmds, null,
    private boolean buildRMI(IFile javaSource, String packageName) throws CoreException {        boolean ret = true;        String fileStr = javaSource.getName();        if (packageName.length() > 0)        {        	fileStr = packageName + "." + fileStr; //$NON-NLS-1$        }        fileStr = fileStr.substring(0, fileStr.length() - BaseComponentCreationWizardPage.DEFAULT_DESCRIPTION_EXT.length());        String workDir = javaSource.getProject().getLocation().toOSString();        String binDir = SmartFrogProjectUtil.getbinPathName(javaSource);        String rmiLocation = SmartFrogPreferencePage.getRmiLocation();        try {            String cmd = SmartFrogPreferencePage.getRmiLocation()                    + ISmartFrogConstants.FILE_SEPARATOR + "rmic" //$NON-NLS-1$                    + ISmartFrogConstants.WHITE_SPACE + "-classpath " //$NON-NLS-1$                    + mClassPath + Util.getClassSeparator() + binDir                    + ISmartFrogConstants.WHITE_SPACE + DESTINATION_OPTION                    + binDir + ISmartFrogConstants.WHITE_SPACE + fileStr + ""; //$NON-NLS-1$            Process mProcess = Runtime.getRuntime().exec(cmd, null,                    new File(workDir + "/src")); //$NON-NLS-1$            ( new StreamGobbler(mProcess.getInputStream(), "builder:ERROR") ).start(); //$NON-NLS-1$            ( new StreamGobbler(mProcess.getErrorStream(), "builder:OUTPUT") ).start(); //$NON-NLS-1$            int status = mProcess.waitFor();        } catch (Exception e) {            throw(new CoreException(                    new Status(IStatus.ERROR,                        SmartFrogPlugin.getPluginId(), 0,                         Messages.getString("BasicSmartFrogBuilder.error.RmicCompilerError"), e))); //$NON-NLS-1$                    }        return ret;    }