001/* Wrapper class to start up the Hybrid Systems Tool
002
003 Copyright (c) 2001-2009 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//// HyVisualApplication
032
033/** A wrapper class that calls eventually calls
034 ptolemy.vergil.VergilApplication for use with Java Network Launching
035 Protocol (JNLP) aka Web Start.
036
037 <p>This class is very similar to other classes that invoke
038 Vergil applications under Web Start because each application
039 needs to have its own jar file.
040
041 <p>In Web Start 1.0.1, it is necessary to sign the application
042 if it is to have access to the local disk etc.  The way that this is
043 handled is that the .jnlp file that defines the application
044 is copied to the .jar file that defines the main() method for
045 the application and the .jar file is signed.  Unfortunately, this means
046 that two Web Start applications cannot share one jar file, so
047 we create these wrapper classes that call the appropriate main class.
048 <p>For more information about JNLP, see $PTII/mk/jnlp.in.
049
050 @see MenuApplication
051
052 @author Christopher Hylands
053 @version $Id$
054 @since Ptolemy II 2.0
055 @Pt.ProposedRating Red (cxh)
056 @Pt.AcceptedRating Red (cxh)
057 */
058public class HyVisualApplication extends MenuApplication {
059    /** Main method that sets user.dir as necessary and calls
060     * MenuApplication.main().
061     * @param args Arguments to be passed on to MenuApplication.main()
062     */
063    public static void main(final String[] args) {
064        // See the class comment of MenuApplication
065        // about why we set the security manager to null.
066        System.setSecurityManager(null);
067        MenuApplication.main(args);
068    }
069}