run.sh revision 0
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# Copyright 1998 Sun Microsystems, Inc. All Rights Reserved.
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# This code is free software; you can redistribute it and/or modify it
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# under the terms of the GNU General Public License version 2 only, as
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# published by the Free Software Foundation.
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# This code is distributed in the hope that it will be useful, but WITHOUT
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# version 2 for more details (a copy is included in the LICENSE file that
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# accompanied this code).
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# You should have received a copy of the GNU General Public License version
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# 2 along with this work; if not, write to the Free Software Foundation,
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# CA 95054 USA or visit www.sun.com if you need additional information or
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# have any questions.
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#
cf1f7b5e81583dfca30972cfef322266a6928e7fKnut Anders Hatlen# @bug 4100915
64b763950bf11e9357facbd2b5666631a895c085Trond Norbyemkdir classes
64b763950bf11e9357facbd2b5666631a895c085Trond Norbyejavac -d classes *.java
64b763950bf11e9357facbd2b5666631a895c085Trond Norbyejava -classpath classes -Djava.policy=Allow.policy Test
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye# ENABLE next line when new method for invoking a main with a SecureClassLoader is known
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye#java -classpath classes -Djava.policy=NotAllow.policy Test -expectSecurityException
64b763950bf11e9357facbd2b5666631a895c085Trond Norbye