SUN MICROSYSTEMS, INC. THROUGH ITS SUN MICROSYSTEMS LABORATORIES
DIVISION ("SUN") WILL LICENSE THIS SOFTWARE AND THE ACCOMPANYING
DOCUMENTATION TO YOU (a "Licensee") ONLY ON YOUR ACCEPTANCE OF ALL 
THE TERMS SET FORTH BELOW.

Sun grants Licensee a non-exclusive, royalty-free right to download,
install, compile, use, copy and distribute the Software, modify or
otherwise create derivative works from the Software (each, a
"Modification") and distribute any Modification in source code and/or
binary code form to its customers with a license agreement containing
these terms and noting that the Software has been modified. The
Software is copyrighted by Sun and other third parties and Licensee
shall retain and reproduce all copyright and other notices presently 
on the Software. As between Sun and Licensee, Sun is the sole owner of
all rights in and to the Software other than the limited rights
granted to Licensee herein; Licensee will own its Modifications,
expressly subject to Sun's continuing ownership of the
Software. Licensee will, at its expense, defend and indemnify Sun and
its licensors from and against any third party claims, including costs
and reasonable attorneys' fees, and be wholly responsible for any
liabilities arising out of or related to Licensee's development, use
or distribution of the Software or Modifications. Any distribution of
the Software and Modifications must comply with all applicable United
States export control laws.

THE SOFTWARE IS BEING PROVIDED TO LICENSEE "AS IS" AND ALL EXPRESS OR
IMPLIED CONDITIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,
ARE DISCLAIMED. IN NO EVENT WILL SUN BE LIABLE HEREUNDER FOR ANY
DIRECT DAMAGES OR ANY INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND.

--

Portions of Jacl and Tcl Blend are
Copyright (c) 1997-1999 The Regents of the University of California.
All rights reserved.

Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the above
copyright notice and the following two paragraphs appear in all copies
of this software.

IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
ENHANCEMENTS, OR MODIFICATIONS.

--

Preamble
--------

Jacl regular expressions are implemented by the OROMatcher regular
expression package for Java, whose terms of use are specified by
this document, a license separate from the rest of the Jacl binary
distribution.  In late 1997 Sun Labs was preparing the Jacl 1.0
release but had not implemented Tcl regular expressions.  As a
stop-gap measure to buy time to port Tcl regular expressions to Java,
Sun Labs arranged a no-fee license with ORO, Inc. to use their
OROMatcher regular expression package in Jacl.  OROMatcher implements
Perl 5.003 regular expressions; therefore Jacl scripts using regular
expressions may not be 100% compatible with Tcl scripts.

In 1998 several major events occurred that impacted Jacl.  The
SunScript division of Sun Labs was dissolved and the new company
Scriptics, Inc. was formed.  Sun Labs effectively ceased its
custodianship of Jacl.  Later that year, ORO, Inc. went out of
business, all rights to its software reverting to Daniel Savarese, one
of its founders.  These events made ambiguous the terms of Jacl's
inclusion of OROMatcher.  It is the purpose of this document to
specify those terms and how they affect you, the Jacl user.

Jacl will eventually replace its use of OROMatcher with an open source
package in order to better meet its objectives.  If you wish to use
OROMatcher in your Java programs, you can freely download it from
either http://www.oroinc.com/ or http://www.savarese.org/.  OROMatcher
source code can unfortunately not be made freely available because of
continuing obligations to existing source licensees.  If you have any
questions about this license, you can send email to info@oroinc.com
for clarification.  Any support issues specifically relating to
OROMatcher should be sent to support@oroinc.com.

License
-------

Daniel Savarese, hereinafter referred to as Licensor, grants Jacl
users, hereinafter referred to as Licensee, a non-exclusive,
non-transferable limited license to use the OROMatcher Java class
package (Licensed Software) in conjunction with Jacl (Java Command
Language) software.  There is no fee for this license.  This license
shall remain in effect so long as Jacl remains a free technology
(i.e., so long as no fee is charged for the use of Jacl).

The Licensed Software comprises any version of the OROMatcher Java
class package in object code form (Java .class files) with a major
revision number less than 2.

Licensee may use and redistribute the Licensed Software as follows:

  1. Licensee may reproduce and redistribute the Licensed Software in
  object code form only (Java .class files) and only when incorporated
  into the Jacl software product. 

  2. Licensee must include this license with the Jacl software product
  so long as Jacl continues to incorporate the Licensed Software.

  3. Licensee may not make direct use of OROMatcher APIs except when
  implementing Jacl regular expression functions.  All further use of
  OROMatcher must be indirect, through the Jacl regular expression
  interface.  If Licensee desires to make direct use of OROMatcher
  APIs in Java programs, Licensee must separately obtain OROMatcher
  from Daniel Savarese at http://www.oroinc.com/ or 
  http://www.savarese.org/.

  4. Except as permitted by this License, Licensee may not decompile,
  reverse engineer, disassemble, modify, rent, lease, loan, distribute,
  create derivative works from the Licensed Software or transmit the
  Licensed Software over a network.

LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
OF THE LICENSED SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT. LICENSOR SHALL NOT BE LIABLE
FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
OR DISTRIBUTING THE LICENSED SOFTWARE OR ITS DERIVATIVES. THE LICENSED
SOFTWARE IS NOT DESIGNED FOR USE IN HIGH RISK ACTIVITIES REQUIRING
FAIL-SAFE PERFORMANCE. ORO DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY
OF FITNESS FOR HIGH RISK ACTIVITIES.
