File: Runner.java

package info (click to toggle)
bytecode 0.92.cvs.20070925
  • links: PTS, VCS
  • area: contrib
  • in suites: lenny
  • size: 392 kB
  • ctags: 1,026
  • sloc: java: 3,751; xml: 233; makefile: 37
file content (12 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
package test;

public class Runner {
    public static void main(String[] args) throws Exception {
        if(args.length != 1) {
	  throw new Exception("Use: test.Runner runnableClass");
	}
	Class cl = Class.forName(args[0]);
	Runnable r = (Runnable) cl.newInstance();
	r.run();
    }
}