tldr/pages/common/serialver.md

18 lines
573 B
Markdown
Raw Normal View History

2022-10-30 12:12:03 +00:00
# serialver
> Returns the serialVersionUID of classes.
> It does not set a security manager by default.
2023-06-04 02:48:54 +01:00
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/serialver.html>.
2022-10-30 12:12:03 +00:00
- Display the serialVersionUID of a class:
`serialver {{classnames}}`
- Display the serialVersionUID for a colon-separated list of classes and resources:
2022-12-04 09:12:49 +00:00
`serialver -classpath {{path/to/directory}} {{classname1:classname2:...}}`
2022-10-30 12:12:03 +00:00
- Use a specific option from reference page of Java application launcher to the Java Virtual Machine:
`serialver -Joption {{classnames}}`