if (!batch) {
// Display AWT window => may run with older JVM
final Frame f = new Frame("System Configuration Error");
f.add(new Label("Java version 1.4 or later is required to run this program."), BorderLayout.NORTH);
f.add(new Label("Please download it from http://java.sun.com/"), BorderLayout.SOUTH);
f.pack();
f.setVisible(true);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
synchronized (f) {
f.notifyAll();