blob: cb653146ba7bcb959e97c3db2ab935c354199d33 [file] [log] [blame]
bpatel4bf512b2011-05-11 08:30:46 -07001." Copyright (c) 1997, 2011, 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."
bpatel4bf512b2011-05-11 08:30:46 -070022.TH serialver 1 "10 May 2011"
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
duke6e45e102007-12-01 00:00:00 +000028.LP
29The \f3serialver\fP command returns the \f2serialVersionUID\fP.
30.LP
31.SH "SYNOPSIS"
32.LP
duke6e45e102007-12-01 00:00:00 +000033.nf
34\f3
35.fl
36\fP\f3serialver\fP [ options ] [ classnames ]
37.fl
38.fi
39
40.LP
41.RS 3
duke6e45e102007-12-01 00:00:00 +000042.TP 3
43options
44Command\-line options, as specified in this document.
45.TP 3
46classnames
47One or more class names
tbell16c34dd2009-05-04 18:28:26 -070048.RE
49
duke6e45e102007-12-01 00:00:00 +000050.LP
duke6e45e102007-12-01 00:00:00 +000051.SH "DESCRIPTION"
52.LP
duke6e45e102007-12-01 00:00:00 +000053.LP
54\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.
55.LP
56.SH "OPTIONS"
57.LP
tbell16c34dd2009-05-04 18:28:26 -070058.RS 3
duke6e45e102007-12-01 00:00:00 +000059.TP 3
tbell16c34dd2009-05-04 18:28:26 -070060\-classpath <directories and zip/jar files separated by :>
duke6e45e102007-12-01 00:00:00 +000061Set search path for application classes and resources.
tbell16c34dd2009-05-04 18:28:26 -070062.RE
63
duke6e45e102007-12-01 00:00:00 +000064.LP
tbell16c34dd2009-05-04 18:28:26 -070065.RS 3
duke6e45e102007-12-01 00:00:00 +000066.TP 3
67\-show
68Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID.
69.TP 3
70\-Joption
tbell16c34dd2009-05-04 18:28:26 -070071Pass \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.
72.RE
73
duke6e45e102007-12-01 00:00:00 +000074.LP
75.SH "NOTES"
76.LP
duke6e45e102007-12-01 00:00:00 +000077.LP
78The \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:
79.LP
duke6e45e102007-12-01 00:00:00 +000080.LP
81\f2\-J\-Djava.security.manager\fP
82.LP
duke6e45e102007-12-01 00:00:00 +000083.LP
84and, if necessary, a security policy can be specified with the following option:
85.LP
duke6e45e102007-12-01 00:00:00 +000086.LP
87\f2\-J\-Djava.security.policy=<policy file>\fP
88.LP
duke6e45e102007-12-01 00:00:00 +000089.SH "SEE ALSO"
90.LP
duke6e45e102007-12-01 00:00:00 +000091.LP
92.na
93\f2java.io.ObjectStreamClass\fP @
94.fi
bpatel4bf512b2011-05-11 08:30:46 -070095http://download.oracle.com/javase/7/docs/api/java/io/ObjectStreamClass.html
duke6e45e102007-12-01 00:00:00 +000096.LP
duke6e45e102007-12-01 00:00:00 +000097