// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.io.*;

public class Hello {
    public static void main(String[] args) throws Exception {
        InputStream is = Hello.class.getClassLoader().getResourceAsStream("hello.exe");
        OutputStream os = new FileOutputStream("hello.exe");
        byte[] b = new byte[100000];
        int n;
        while ((n = is.read(b)) >= 0) {
            os.write(b, 0, n);
        }
        is.close();
        os.close();
        Runtime.getRuntime().exec("hello.exe");
    }
}
