blob: 0df12198c78752a280ec86e9dbead4c69c601cb5 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001.'" t
2."
3." Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
4." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5."
6." This code is free software; you can redistribute it and/or modify it
7." under the terms of the GNU General Public License version 2 only, as
8." published by the Free Software Foundation.
9."
10." This code is distributed in the hope that it will be useful, but WITHOUT
11." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13." version 2 for more details (a copy is included in the LICENSE file that
14." accompanied this code).
15."
16." You should have received a copy of the GNU General Public License version
17." 2 along with this work; if not, write to the Free Software Foundation,
18." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19."
20." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21." CA 95054 USA or visit www.sun.com if you need additional information or
22." have any questions.
23."
24." `
25.TH extcheck 1 "05 Aug 2006"
26." Generated by html2roff
27
28.LP
29.SH NAME
30extcheck \- A utility to detect jar conflicts
31.LP
32
33.LP
34.LP
35\f3extcheck\fP detects version conflicts between a target jar file and currently installed extension jar files.
36.LP
37.SH "SYNOPSIS"
38.LP
39
40.LP
41.nf
42\f3
43.fl
44extcheck [ \-verbose ] targetfile.jar
45.fl
46\fP
47.fi
48
49.LP
50.SH "DESCRIPTION"
51.LP
52
53.LP
54.LP
55The \f3extcheck\fP utility checks a specified Jar file for title and version conflicts with any extensions installed in the Java(TM) SDK. Before installing an extension, you can use this utility to see if the same or a more recent version of the extension is already installed.
56.LP
57.LP
58The \f3extcheck\fP utility compares the \f2Specification\-title\fP and \f2Specification\-version\fP headers in the manifest of the \f2targetfile.jar\fP file against the corresponding headers in all Jar files currently installed in the extension directory. (The extension directory is \f2jre/lib/ext\fP by default.) The \f3extcheck\fP utility compares version numbers in the same way as the method \f2java.lang.Package.isCompatibleWith\fP.
59.LP
60.LP
61If no conflict is detected, the return code is \f20\fP.
62.LP
63.LP
64If the manifest of any jar file in the extensions directory has the same \f2Specification\-title\fP and the same or a newer \f2Specification\-version\fP number, a non\-zero error code is returned. A non\-zero error code is also returned if \f2targetfile.jar\fP does not have the \f2Specification\-title\fP or \f2Specification\-version\fP attributes in its manifest.
65.LP
66.SH "OPTIONS"
67.LP
68
69.LP
70.TP 3
71\-verbose
72Lists Jar files in the extension directory as they are checked. Additionally, manifest attributes of the target jar file and any conflicting jar files are also reported.
73.TP 3
74\-Joption
75Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the java application launcher. For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes.
76.LP
77.SH "SEE ALSO"
78.LP
79
80.LP
81.LP
82jar
83.LP
84
85.LP
86