5865
|
1 |
." Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
2
|
2 |
." 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 |
."
|
5506
|
18 |
." 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.
|
2
|
21 |
."
|
5865
|
22 |
.TH serialver 1 "02 Jun 2010"
|
2
|
23 |
|
|
24 |
.LP
|
2692
|
25 |
.SH "Name"
|
2
|
26 |
serialver \- The Serial Version Command
|
|
27 |
.LP
|
2692
|
28 |
.RS 3
|
2
|
29 |
|
|
30 |
.LP
|
|
31 |
.LP
|
|
32 |
The \f3serialver\fP command returns the \f2serialVersionUID\fP.
|
|
33 |
.LP
|
2692
|
34 |
.RE
|
2
|
35 |
.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
|
2692
|
50 |
.RS 3
|
2
|
51 |
.TP 3
|
|
52 |
options
|
|
53 |
Command\-line options, as specified in this document.
|
|
54 |
.TP 3
|
|
55 |
classnames
|
|
56 |
One or more class names
|
2692
|
57 |
.RE
|
|
58 |
|
2
|
59 |
.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
|
2692
|
72 |
.RS 3
|
2
|
73 |
.TP 3
|
2692
|
74 |
\-classpath <directories and zip/jar files separated by :>
|
2
|
75 |
Set search path for application classes and resources.
|
2692
|
76 |
.RE
|
|
77 |
|
2
|
78 |
.LP
|
2692
|
79 |
.RS 3
|
2
|
80 |
.TP 3
|
|
81 |
\-show
|
|
82 |
Displays 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
|
2692
|
85 |
Pass \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 |
|
2
|
88 |
.LP
|
|
89 |
.SH "NOTES"
|
|
90 |
.LP
|
|
91 |
|
|
92 |
.LP
|
|
93 |
.LP
|
|
94 |
The \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
|
|
104 |
and, 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
|
2692
|
121 |
http://java.sun.com/javase/6/docs/api/java/io/ObjectStreamClass.html
|
2
|
122 |
.LP
|
|
123 |
|