Java tutorial
//package com.java2s; import java.net.InetAddress; public class Main { public static void mkView(String viewTag) { try { Process pr = Runtime.getRuntime().exec("cleartool mkview -tag " + viewTag + " \\\\" + InetAddress.getLocalHost().getHostName() + "\\viewstore\\" + viewTag + ".vws"); pr.waitFor(); pr.destroy(); } catch (Exception e) { throw new RuntimeException("cleartool mkview error!", e); } } }