{
    "mode": "man",
    "parameter": "serialver",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/serialver/1/json",
    "generated": "2026-09-04T05:01:46Z",
    "synopsis": "serialver [ options ] [ classnames ]\noptions\nThe command-line options. See Options.\nclassnames\nThe classes for which the serialVersionUID is to be returned.",
    "sections": {
        "NAME": {
            "content": "serialver - Returns the serial version UID for specified classes.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "serialver [ options ] [ classnames ]\n\n\noptions\nThe command-line options. See Options.\n\nclassnames\nThe classes for which the serialVersionUID is to be returned.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The serialver command returns the serialVersionUID for one or more classes in a form suitable\nfor  copying  into  an  evolving  class. When called with no arguments, the serialver command\nprints a usage line.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "-classpath path-files\nSets the search path for application  classes  and  resources.  Separate  classes  and\nresources with a colon (:).\n",
            "subsections": [
                {
                    "name": "-show",
                    "content": "Displays a simple user interface. Enter the full class name and press either the Enter\nkey or the Show button to display the serialVersionUID.\n"
                },
                {
                    "name": "-J_option_",
                    "content": "Passes  option  to  the  Java  Virtual  Machine,  where  option  is one of the options\ndescribed on the reference page for the Java application launcher.  For  example,  -J-\nXms48m sets the startup memory to 48 MB. See java(1).\n"
                }
            ]
        },
        "NOTES": {
            "content": "The serialver command loads and initializes the specified classes in its virtual machine, and\nby  default,  it  does not set a security manager. If the serialver command is to be run with\nuntrusted classes, then a security manager can be set with the following option:\n",
            "subsections": [
                {
                    "name": "-J-Djava.security.manager",
                    "content": "When necessary, a security policy can be specified with the following option:\n"
                },
                {
                    "name": "-J-Djava.security.policy=<policy file>",
                    "content": ""
                }
            ]
        },
        "SEE ALSO": {
            "content": "• policytool(1)\n\n• The            java.io.ObjectStream            class             description             at\nhttp://docs.oracle.com/javase/8/docs/api/java/io/ObjectStreamClass.html\n\nJDK 8                                     21 November 2013                              serialver(1)",
            "subsections": []
        }
    },
    "summary": "serialver - Returns the serial version UID for specified classes.",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Passes option to the Java Virtual Machine, where option is one of the options described on the reference page for the Java application launcher. For example, -J- Xms48m sets the startup memory to 48 MB. See java(1)."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "policytool",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/policytool/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Returns the serialVersionUID of classes.",
        "examples": [
            {
                "description": "Display the serialVersionUID of a class",
                "command": "serialver {{classnames}}"
            },
            {
                "description": "Display the serialVersionUID for a colon-separated list of classes and resources",
                "command": "serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}"
            },
            {
                "description": "Use a specific option from reference page of Java application launcher to the Java Virtual Machine",
                "command": "serialver -Joption {{classnames}}"
            }
        ]
    }
}