HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

serialver — Returns the serialVersionUID of classes. It does not set a security manager by default. More informa

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theclassescommandreturnsserialversionuidserialverclidoes

Problem

How to use the serialver command: Returns the serialVersionUID of classes. It does not set a security manager by default. More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/serialver.html>.

Solution

serialver — Returns the serialVersionUID of classes. It does not set a security manager by default. More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/serialver.html>.

Display the serialVersionUID of a class:
serialver {{classnames}}


Display the serialVersionUID for a colon-separated list of classes and resources:
serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}


Use a specific option from reference page of Java application launcher to the Java Virtual Machine:
serialver -Joption {{classnames}}

Code Snippets

Display the serialVersionUID of a class

serialver {{classnames}}

Display the serialVersionUID for a colon-separated list of classes and resources

serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}

Use a specific option from reference page of Java application launcher to the Java Virtual Machine

serialver -Joption {{classnames}}

Context

tldr-pages: common/serialver

Revisions (0)

No revisions yet.