1 20 21 package org.jdesktop.jdic.packager; 22 23 import java.io.IOException ; 24 import org.jdesktop.jdic.packager.impl.Jnlp2Package; 25 import org.jdesktop.jdic.packager.impl.JnlpConstants; 26 import org.jdesktop.jdic.packager.impl.JnlpUtility; 27 28 29 80 public class Jnlp2Msi { 81 87 public static void main(final String [] args) { 88 JnlpUtility.checkPlatformCompatibility(JnlpConstants.OS_WINDOWS); 90 91 try { 93 Jnlp2Package.generatePackage(args); 94 } catch (IOException e1) { 95 System.out.println(e1.getMessage()); 96 } catch (IllegalArgumentException e2) { 97 System.out.println(e2.getMessage()); 98 } catch (Exception e) { 99 e.printStackTrace(); 100 } catch (Error err) { 101 err.printStackTrace(); 102 } finally { 103 System.exit(0); 104 } 105 } 106 } 107 | Popular Tags |