if (i < args.length && !args[i + 1].startsWith("-"))
if (i < (args.length -1) && !args[i + 1].startsWith("-"))
	static String[] processCommandLine(String[] args) {		if (args == null)			return args;		if (args.length == 0)			return args;		allArgs = args;		int[] configArgs = new int[args.length];		//need to initialize the first element to something that could not be an index.		configArgs[0] = -1;		int configArgIndex = 0;		for (int i = 0; i < args.length; i++) {			boolean found = false;			// check for args without parameters (i.e., a flag arg)			// consume obsolete args for compatibility			if (args[i].equalsIgnoreCase(CLASSLOADER_PROPERTIES))				found = true; // ignored			if (args[i].equalsIgnoreCase(NO_PACKAGE_PREFIXES))				found = true; // ignored			if (args[i].equalsIgnoreCase(PLUGINS))				found = true; // ignored			if (args[i].equalsIgnoreCase(FIRST_USE))				found = true; // ignored			if (args[i].equalsIgnoreCase(NO_UPDATE))				found = true; // ignored			if (args[i].equalsIgnoreCase(NEW_UPDATES))				found = true; // ignored			if (args[i].equalsIgnoreCase(UPDATE))				found = true; // ignored			if (args[i].equalsIgnoreCase(BOOT))				found = true; // ignored			if (args[i].equalsIgnoreCase(KEYRING))				found = true; // ignored  			if (args[i].equalsIgnoreCase(PASSWORD))				found = true; // ignored			// done checking obsolete for args.  Remember where an arg was found 			if (found) {				configArgs[configArgIndex++] = i;				// check if the obsolet arg had a second param				if (i < args.length && !args[i + 1].startsWith("-")) //$NON-NLS-1$					configArgs[configArgIndex++] = ++i;				continue;			}			// check for args with parameters			if (i == args.length - 1 || args[i + 1].startsWith("-")) //$NON-NLS-1$				continue;			String arg = args[++i];			// look for the product to run			// treat -feature as a synonym for -product for compatibility.			if (args[i - 1].equalsIgnoreCase(PRODUCT) || args[i - 1].equalsIgnoreCase(FEATURE)) {				// use the long way to set the property to compile against eeminimum				product = arg;				found = true;			}			// look for the application to run.  			if (args[i - 1].equalsIgnoreCase(APPLICATION)) {				// use the long way to set the property to compile against eeminimum				application = arg;				found = true;			}			// done checking for args.  Remember where an arg was found 			if (found) {				configArgs[configArgIndex++] = i - 1;				configArgs[configArgIndex++] = i;			}		}		// remove all the arguments consumed by this argument parsing		if (configArgIndex == 0) {			appArgs = args;			return args;		}		appArgs = new String[args.length - configArgIndex];		configArgIndex = 0;		int j = 0;		for (int i = 0; i < args.length; i++) {			if (i == configArgs[configArgIndex])				configArgIndex++;			else				appArgs[j++] = args[i];		}		return appArgs;	}