001/* Wrapper class to start up the CapeCode application. 002 003 Copyright (c) 2015-2018 The Regents of the University of California. 004 All rights reserved. 005 Permission is hereby granted, without written agreement and without 006 license or royalty fees, to use, copy, modify, and distribute this 007 software and its documentation for any purpose, provided that the above 008 copyright notice and the following two paragraphs appear in all copies 009 of this software. 010 011 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY 012 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 013 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF 014 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF 015 SUCH DAMAGE. 016 017 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, 018 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 019 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE 020 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF 021 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, 022 ENHANCEMENTS, OR MODIFICATIONS. 023 024 PT_COPYRIGHT_VERSION_2 025 COPYRIGHTENDKEY 026 027 */ 028package ptolemy.actor.gui.jnlp; 029 030////////////////////////////////////////////////////////////////////////// 031//// CapeCodeApplication 032 033/** Wrapper class to start up CapeCode, the subset that has the 034 convenient feature that it automatically imports all the accessors 035 at https://accessors.org and makes them available in an 036 actor library to drag and drop into models. 037 038 This wrapper class that calls eventually calls 039 ptolemy.vergil.VergilApplication for use with Java Network Launching 040 Protocol (JNLP) aka Web Start. 041 042 <p>This class is very similar to other classes that invoke 043 Vergil applications under Web Start because each application 044 needs to have its own jar file. 045 046 <p>In Web Start 1.0.1, it is necessary to sign the application 047 if it is to have access to the local disk etc. The way that this is 048 handled is that the .jnlp file that defines the application 049 is copied to the .jar file that defines the main() method for 050 the application and the .jar file is signed. Unfortunately, this means 051 that two Web Start applications cannot share one jar file, so 052 we create these wrapper classes that call the appropriate main class. 053 <p>For more information about JNLP, see $PTII/mk/jnlp.in. 054 055 @see MenuApplication 056 057 @author Christopher Brooks 058 @version $Id$ 059 @since Ptolemy II 11.0 060 @Pt.ProposedRating Red (cxh) 061 @Pt.AcceptedRating Red (cxh) 062 */ 063public class CapeCodeApplication extends MenuApplication { 064 /** Main method that sets user.dir as necessary and calls 065 * MenuApplication.main(). 066 * @param args Arguments to be passed on to MenuApplication.main() 067 */ 068 public static void main(final String[] args) { 069 // See the class comment of MenuApplication 070 // about why we set the security manager to null. 071 System.setSecurityManager(null); 072 MenuApplication.main(args); 073 } 074}