1 19 20 package org.netbeans; 21 22 import java.util.ResourceBundle ; 23 import javax.swing.JOptionPane ; 24 25 28 public final class Main extends Object { 29 private Main() { 30 } 31 32 36 public static void main (String args[]) throws Exception { 37 try { 41 Class.forName("java.lang.StringBuilder"); } catch (ClassNotFoundException ex) { 43 JOptionPane.showMessageDialog( 44 null, 45 ResourceBundle.getBundle("org.netbeans.Bundle").getString("MSG_InstallJava5"), 46 ResourceBundle.getBundle("org.netbeans.Bundle").getString("MSG_NeedsJava5"), 47 JOptionPane.WARNING_MESSAGE 48 ); 49 System.exit(10); 50 } 51 53 MainImpl.main(args); 54 } 55 56 61 public static String usage () throws Exception { 62 return MainImpl.usage(); 63 } 64 65 66 70 public static void finishInitialization() { 71 MainImpl.finishInitialization(); 72 } 73 } 74 | Popular Tags |