boolean first = true; Iterator <String> i = ec.execute().importListIterator(); while (i.hasNext()) { if (first) first = false; else System.out.print(File.pathSeparator); System.out.print(i.next()); } System.out.println();
System.out.println(ec.execute().getClasspath());
	public static void main(String[] argv) throws Exception {		if (argv.length < 2 || (argv.length % 2 != 0)) {			System.err.println("Usage: " + EclipseClasspath.class.getName() +				" <eclipse dir> <root plugin directory> [<required plugin id> <required plugin dir> ...]");			System.exit(1);		}		EclipseClasspath ec = new EclipseClasspath(argv[0], argv[1]);		for (int i = 2; i < argv.length; i += 2) {			ec.addRequiredPlugin(argv[i], argv[i+1]);		}		boolean first = true;		Iterator <String> i = ec.execute().importListIterator();		while (i.hasNext()) {			if (first)				first = false;			else				System.out.print(File.pathSeparator);			System.out.print(i.next());		}		System.out.println();	}