< prev index next >

src/jdk.compiler/share/man/serialver.1

Print this page


   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" "2018" "JDK 13" "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





   1 '\" t
   2 .\" Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
   3 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 .\"
   5 .\" This code is free software; you can redistribute it and/or modify it
   6 .\" under the terms of the GNU General Public License version 2 only, as
   7 .\" published by the Free Software Foundation.
   8 .\"
   9 .\" This code is distributed in the hope that it will be useful, but WITHOUT
  10 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 .\" version 2 for more details (a copy is included in the LICENSE file that
  13 .\" accompanied this code).
  14 .\"
  15 .\" You should have received a copy of the GNU General Public License version
  16 .\" 2 along with this work; if not, write to the Free Software Foundation,
  17 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 .\"
  19 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 .\" or visit www.oracle.com if you need additional information or have any
  21 .\" questions.
  22 .\"
  23 .\"     Arch: generic
  24 .\"     Software: JDK 8
  25 .\"     Date: 21 November 2013
  26 .\"     SectDesc: Remote Method Invocation (RMI) Tools
  27 .\"     Title: serialver.1
  28 .\"
  29 .if n .pl 99999
  30 .TH serialver 1 "21 November 2013" "JDK 8" "Remote Method Invocation (RMI) Tools"
  31 .\" -----------------------------------------------------------------
  32 .\" * Define some portability stuff
  33 .\" -----------------------------------------------------------------
  34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35 .\" http://bugs.debian.org/507673
  36 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  37 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38 .ie \n(.g .ds Aq \(aq
  39 .el       .ds Aq '
  40 .\" -----------------------------------------------------------------
  41 .\" * set default formatting
  42 .\" -----------------------------------------------------------------
  43 .\" disable hyphenation
  44 .nh
  45 .\" disable justification (adjust text to left margin only)
  46 .ad l
  47 .\" -----------------------------------------------------------------
  48 .\" * MAIN CONTENT STARTS HERE *
  49 .\" -----------------------------------------------------------------
  50 
  51 .SH NAME    
  52 serialver \- Returns the serial version UID for specified classes\&.
  53 .SH SYNOPSIS    
  54 .sp     
  55 .nf     
  56 
  57 \fBserialver\fR [ \fIoptions\fR ] [ \fIclassnames\fR ]
  58 .fi     
  59 .sp     
  60 .TP     
  61 \fIoptions\fR
  62 The command-line options\&. See Options\&.
  63 .TP     
  64 \fIclassnames\fR
  65 The classes for which the \f3serialVersionUID\fR is to be returned\&.
  66 .SH DESCRIPTION    
  67 The \f3serialver\fR command returns the \f3serialVersionUID\fR for one or more classes in a form suitable for copying into an evolving class\&. When called with no arguments, the \f3serialver\fR command prints a usage line\&.
  68 .SH OPTIONS    
  69 .TP
  70 -classpath \fIpath-files\fR
  71 .br
  72 Sets the search path for application classes and resources\&. Separate classes and resources with a colon (:)\&.









  73 .TP
  74 -show
  75 .br
  76 Displays a simple user interface\&. Enter the full class name and press either the \fIEnter\fR key or the \fIShow\fR button to display the \f3serialVersionUID\fR\&.


  77 .TP
  78 -J\fIoption\fR
  79 .br
  80 Passes \f3option\fR to the Java Virtual Machine, where option is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
  81 .SH NOTES    
  82 The \f3serialver\fR command loads and initializes the specified classes in its virtual machine, and by default, it does not set a security manager\&. If the \f3serialver\fR command is to be run with untrusted classes, then a security manager can be set with the following option:
  83 .sp     
  84 .nf     
  85 \f3\-J\-Djava\&.security\&.manager\fP
  86 .fi     
  87 .nf     
  88 \f3\fP
  89 .fi     
  90 .sp     
  91 When necessary, a security policy can be specified with the following option:
  92 .sp     
  93 .nf     
  94 \f3\-J\-Djava\&.security\&.policy=<policy file>\fP
  95 .fi     
  96 .nf     
  97 \f3\fP
  98 .fi     
  99 .sp     
 100 .SH SEE\ ALSO    
 101 .TP 0.2i    
 102 \(bu
 103 The \f3java\&.io\&.ObjectStream\fR class description at http://docs\&.oracle\&.com/javase/8/docs/api/java/io/ObjectStreamClass\&.html
 104 .RE
 105 .br
 106 'pl 8.5i
 107 'bp
< prev index next >