blob: ec42f16fd749f0e2046e4aae36b8872846b87c14 [file] [log] [blame]
tbell16c34dd2009-05-04 18:28:26 -07001." Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
duke6e45e102007-12-01 00:00:00 +00002." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3."
4." This code is free software; you can redistribute it and/or modify it
5." under the terms of the GNU General Public License version 2 only, as
6." published by the Free Software Foundation.
7."
8." This code is distributed in the hope that it will be useful, but WITHOUT
9." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11." version 2 for more details (a copy is included in the LICENSE file that
12." accompanied this code).
13."
14." You should have received a copy of the GNU General Public License version
15." 2 along with this work; if not, write to the Free Software Foundation,
16." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17."
18." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
19." CA 95054 USA or visit www.sun.com if you need additional information or
20." have any questions.
21."
tbell16c34dd2009-05-04 18:28:26 -070022.TH serialver 1 "04 May 2009"
23." Generated from HTML by html2man (author: Eric Armstrong)
duke6e45e102007-12-01 00:00:00 +000024
25.LP
tbell16c34dd2009-05-04 18:28:26 -070026.SH "Name"
duke6e45e102007-12-01 00:00:00 +000027serialver \- The Serial Version Command
28.LP
tbell16c34dd2009-05-04 18:28:26 -070029.RS 3
duke6e45e102007-12-01 00:00:00 +000030
31.LP
32.LP
33The \f3serialver\fP command returns the \f2serialVersionUID\fP.
34.LP
tbell16c34dd2009-05-04 18:28:26 -070035.RE
duke6e45e102007-12-01 00:00:00 +000036.SH "SYNOPSIS"
37.LP
38
39.LP
40.nf
41\f3
42.fl
43\fP\f3serialver\fP [ options ] [ classnames ]
44.fl
45.fi
46
47.LP
48.RS 3
49
50.LP
tbell16c34dd2009-05-04 18:28:26 -070051.RS 3
duke6e45e102007-12-01 00:00:00 +000052.TP 3
53options
54Command\-line options, as specified in this document.
55.TP 3
56classnames
57One or more class names
tbell16c34dd2009-05-04 18:28:26 -070058.RE
59
duke6e45e102007-12-01 00:00:00 +000060.LP
61.RE
62.SH "DESCRIPTION"
63.LP
64
65.LP
66.LP
67\f3serialver\fP returns the \f2serialVersionUID\fP for one or more classes in a form suitable for copying into an evolving class. When invoked with no arguments it prints a usage line.
68.LP
69.SH "OPTIONS"
70.LP
71
72.LP
tbell16c34dd2009-05-04 18:28:26 -070073.RS 3
duke6e45e102007-12-01 00:00:00 +000074.TP 3
tbell16c34dd2009-05-04 18:28:26 -070075\-classpath <directories and zip/jar files separated by :>
duke6e45e102007-12-01 00:00:00 +000076Set search path for application classes and resources.
tbell16c34dd2009-05-04 18:28:26 -070077.RE
78
duke6e45e102007-12-01 00:00:00 +000079.LP
tbell16c34dd2009-05-04 18:28:26 -070080.RS 3
duke6e45e102007-12-01 00:00:00 +000081.TP 3
82\-show
83Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID.
84.TP 3
85\-Joption
tbell16c34dd2009-05-04 18:28:26 -070086Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the java(1). For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes.
87.RE
88
duke6e45e102007-12-01 00:00:00 +000089.LP
90.SH "NOTES"
91.LP
92
93.LP
94.LP
95The \f3serialver\fP command loads and initializes the specified classes in its virtual machine, and by default, it does not set a security manager. If \f3serialver\fP is to be run with untrusted classes, a security manager can be set with the following option:
96.LP
97.RS 3
98
99.LP
100.LP
101\f2\-J\-Djava.security.manager\fP
102.LP
103.RE
104.LP
105and, if necessary, a security policy can be specified with the following option:
106.LP
107.RS 3
108
109.LP
110.LP
111\f2\-J\-Djava.security.policy=<policy file>\fP
112.LP
113.RE
114.SH "SEE ALSO"
115.LP
116
117.LP
118.LP
119.na
120\f2java.io.ObjectStreamClass\fP @
121.fi
tbell16c34dd2009-05-04 18:28:26 -0700122http://java.sun.com/javase/6/docs/api/java/io/ObjectStreamClass.html
duke6e45e102007-12-01 00:00:00 +0000123.LP
124
125.LP
126