01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: // This file is part of KeY - Integrated Deductive Software Design
10: // Copyright (C) 2001-2004 Universitaet Karlsruhe, Germany
11: // Universitaet Koblenz-Landau, Germany
12: // Chalmers University of Technology, Sweden
13: //
14: // The KeY system is protected by the GNU General Public License.
15: // See LICENSE.TXT for details.
16: package de.uka.ilkd.key.util.install;
17:
18: import java.awt.GraphicsEnvironment;
19:
20: import javax.swing.JOptionPane;
21:
22: public class DummyInstaller {
23:
24: private DummyInstaller() {
25: }
26:
27: public static void main(String[] args) {
28: try {
29: if (GraphicsEnvironment.getLocalGraphicsEnvironment()
30: .getScreenDevices() == null
31: || GraphicsEnvironment
32: .getLocalGraphicsEnvironment()
33: .getScreenDevices().length == 0) {
34: }
35: JOptionPane
36: .showMessageDialog(
37: null,
38: "You must install KeY first. Please run: \n "
39: + "'java -jar setup.jar'"
40: + "\n or just double click on 'setup.jar' "
41: + "(depends on your desktop configuration)",
42: "Installation successfully completed",
43: JOptionPane.INFORMATION_MESSAGE);
44: System.exit(0);
45: } catch (Throwable err) {
46: System.out
47: .println("You must install KeY first. Please run 'java -jar setup.jar'"
48: + "\n or just double click on 'setup.jar' "
49: + "(depends on your desktop configuration)");
50: }
51: }
52:
53: }
|