@Override
    public void print(String file) {
        Runtime r = Runtime.getRuntime();
        Process p;
        try {
            String command = this.IrfanViewPath + " " + file + " /print";
            System.out.println(command);
            p = r.exec(command);
        } catch (IOException e) {
            e.printStackTrace();
            return;
        }

        try {
            p.waitFor();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }