Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {

        String cmd = "cmd.exe /c start ";
        // String file = "c:\\version.txt";
        // String file = "http://www.google.com";
        // String file = "c:\\";
        // String file = "mailto:author@my.com";
        String file = "mailto:";
        Runtime.getRuntime().exec(cmd + file);
    }

}