Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static void startView(String viewTag) {
        try {
            Process p1 = Runtime.getRuntime().exec("cleartool startview " + viewTag);
            p1.waitFor();
            p1.destroy();
        } catch (Exception e) {
            throw new RuntimeException("cleartool startview error!", e);
        }
    }
}