コード例 #1
0
 public void viewClosing(View v) {
   System.exit(0);
 }
コード例 #2
0
 public static void main(String[] args) {
   System.out.println("-----------------");
   System.out.println("General information");
   System.out.println(
       "JVM version: "
           + System.getProperty("java.vm.vendor")
           + " "
           + System.getProperty("java.vm.name")
           + " "
           + System.getProperty("java.vm.version"));
   System.out.println(
       "OS type: "
           + System.getProperty("os.name")
           + " "
           + System.getProperty("os.version")
           + "/"
           + System.getProperty("os.arch")
           + " "
           + System.getProperty("sun.cpu.isalist"));
   System.out.println("-----------------");
   System.out.println("Directory information");
   System.out.println("Java Classpath: " + System.getProperty("java.class.path"));
   System.out.println("Java directory: " + System.getProperty("java.home"));
   System.out.println("Launching from: " + System.getProperty("user.dir"));
   System.out.println("-----------------");
   System.out.println("User informations");
   System.out.println("User name: " + System.getProperty("user.name"));
   System.out.println("User home directory: " + System.getProperty("user.home"));
   System.out.println("-----------------");
   new TestDefaultHandler((args.length > 0) ? args[0] : View.STD_VIEW);
 }