blob: 5b15b5423a81e910469e840f0cca0cdcfc737049 [file] [log] [blame]
bpatel87d64cc2010-07-14 15:42:06 -07001." Copyright (c) 1997, 2010, Oracle and/or its affiliates. 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."
ohair2283b9d2010-05-25 15:58:33 -070018." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19." or visit www.oracle.com if you need additional information or have any
20." questions.
duke6e45e102007-12-01 00:00:00 +000021."
bpatel87d64cc2010-07-14 15:42:06 -070022.TH serialver 1 "02 Jun 2010"
duke6e45e102007-12-01 00:00:00 +000023
24.LP
tbell16c34dd2009-05-04 18:28:26 -070025.SH "Name"
duke6e45e102007-12-01 00:00:00 +000026serialver \- The Serial Version Command
27.LP
tbell16c34dd2009-05-04 18:28:26 -070028.RS 3
duke6e45e102007-12-01 00:00:00 +000029
30.LP
31.LP
32The \f3serialver\fP command returns the \f2serialVersionUID\fP.
33.LP
tbell16c34dd2009-05-04 18:28:26 -070034.RE
duke6e45e102007-12-01 00:00:00 +000035.SH "SYNOPSIS"
36.LP
37
38.LP
39.nf
40\f3
41.fl
42\fP\f3serialver\fP [ options ] [ classnames ]
43.fl
44.fi
45
46.LP
47.RS 3
48
49.LP
tbell16c34dd2009-05-04 18:28:26 -070050.RS 3
duke6e45e102007-12-01 00:00:00 +000051.TP 3
52options
53Command\-line options, as specified in this document.
54.TP 3
55classnames
56One or more class names
tbell16c34dd2009-05-04 18:28:26 -070057.RE
58
duke6e45e102007-12-01 00:00:00 +000059.LP
60.RE
61.SH "DESCRIPTION"
62.LP
63
64.LP
65.LP
66\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.
67.LP
68.SH "OPTIONS"
69.LP
70
71.LP
tbell16c34dd2009-05-04 18:28:26 -070072.RS 3
duke6e45e102007-12-01 00:00:00 +000073.TP 3
tbell16c34dd2009-05-04 18:28:26 -070074\-classpath <directories and zip/jar files separated by :>
duke6e45e102007-12-01 00:00:00 +000075Set search path for application classes and resources.
tbell16c34dd2009-05-04 18:28:26 -070076.RE
77
duke6e45e102007-12-01 00:00:00 +000078.LP
tbell16c34dd2009-05-04 18:28:26 -070079.RS 3
duke6e45e102007-12-01 00:00:00 +000080.TP 3
81\-show
82Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID.
83.TP 3
84\-Joption
tbell16c34dd2009-05-04 18:28:26 -070085Pass \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.
86.RE
87
duke6e45e102007-12-01 00:00:00 +000088.LP
89.SH "NOTES"
90.LP
91
92.LP
93.LP
94The \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:
95.LP
96.RS 3
97
98.LP
99.LP
100\f2\-J\-Djava.security.manager\fP
101.LP
102.RE
103.LP
104and, if necessary, a security policy can be specified with the following option:
105.LP
106.RS 3
107
108.LP
109.LP
110\f2\-J\-Djava.security.policy=<policy file>\fP
111.LP
112.RE
113.SH "SEE ALSO"
114.LP
115
116.LP
117.LP
118.na
119\f2java.io.ObjectStreamClass\fP @
120.fi
tbell16c34dd2009-05-04 18:28:26 -0700121http://java.sun.com/javase/6/docs/api/java/io/ObjectStreamClass.html
duke6e45e102007-12-01 00:00:00 +0000122.LP
duke6e45e102007-12-01 00:00:00 +0000123