1 .\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
   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 .\"
  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.
  21 .\"
  22 .\" Automatically generated by Pandoc 2.3.1
  23 .\"
  24 .TH "SERIALVER" "1" "2020" "JDK 14" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 serialver \- return the \f[CB]serialVersionUID\f[R] for one or more
  29 classes in a form suitable for copying into an evolving class
  30 .SH SYNOPSIS
  31 .PP
  32 \f[CB]serialver\f[R] [\f[I]options\f[R]] [\f[I]classnames\f[R]]
  33 .TP
  34 .B \f[I]options\f[R]
  35 This represents the command\-line options for the \f[CB]serialver\f[R]
  36 command.
  37 See \f[B]Options for serialver\f[R].
  38 .RS
  39 .RE
  40 .TP
  41 .B \f[I]classnames\f[R]
  42 The classes for which \f[CB]serialVersionUID\f[R] is to be returned.
  43 .RS
  44 .RE
  45 .SH DESCRIPTION
  46 .PP
  47 The \f[CB]serialver\f[R] command returns the \f[CB]serialVersionUID\f[R] for
  48 one or more classes in a form suitable for copying into an evolving
  49 class.
  50 When called with no arguments, the \f[CB]serialver\f[R] command prints a
  51 usage line.
  52 .SH OPTIONS FOR SERIALVER
  53 .TP
  54 .B \f[CB]\-classpath\f[R] \f[I]path\-files\f[R]
  55 Sets the search path for application classes and resources.
  56 Separate classes and resources with a colon (:).
  57 .RS
  58 .RE
  59 .TP
  60 .B \f[CB]\-J\f[R]\f[I]option\f[R]
  61 Passes the specified \f[I]option\f[R] to the Java Virtual Machine, where
  62 \f[I]option\f[R] is one of the options described on the reference page
  63 for the Java application launcher.
  64 For example, \f[CB]\-J\-Xms48m\f[R] sets the startup memory to 48 MB.
  65 .RS
  66 .RE
  67 .SH NOTES
  68 .PP
  69 The \f[CB]serialver\f[R] command loads and initializes the specified
  70 classes in its virtual machine, and by default, it doesn\[aq]t set a
  71 security manager.
  72 If the \f[CB]serialver\f[R] command is to be run with untrusted classes,
  73 then a security manager can be set with the following option:
  74 .RS
  75 .PP
  76 \f[CB]\-J\-Djava.security.manager\f[R]
  77 .RE
  78 .PP
  79 When necessary, a security policy can be specified with the following
  80 option:
  81 .RS
  82 .PP
  83 \f[CB]\-J\-Djava.security.policy=\f[R]\f[I]policy_file\f[R]
  84 .RE