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