Java tutorial
//package com.java2s; public class Main { public static void setConfigSpec(String viewTag, String configSpecFilePath) { try { Process pr = Runtime.getRuntime().exec("cleartool setcs -tag " + viewTag + " " + configSpecFilePath); pr.waitFor(); pr.destroy(); } catch (Exception e) { throw new RuntimeException("cleartool setcs error!", e); } } }