serialver

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

Install

All systems
curl cmd.cat/serialver.sh
Debian Debian
apt-get install gcj-4.7-jdk
Ubuntu
apt-get install openjdk-12-jdk-headless
Arch Arch Linux
pacman -S java-environment-common
image/svg+xml Kali Linux
apt-get install openjdk-11-jdk-headless
Fedora
dnf install java-9-openjdk-devel-debug-1
Windows (WSL2)
sudo apt-get update sudo apt-get install openjdk-12-jdk-headless
Raspbian
apt-get install openjdk-8-jdk

Returns the serialVersionUID of classes. It does not set a security manager by default. More information: <https://docs.oracle.com/en/java/javase/20/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

© tl;dr; authors and contributors