Linux Commands Examples

A great documentation place for Linux commands

serialver

The Serial Version Command The serialver command returns the serialVersionUID .

Synopsis

serialver [ options ] [ classnames ]

options

Command-line options, as specified in this document.

classnames

One or more class names


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
echo "Checking from the jar file: ${FN_JAR_FILE}"
serialver -classpath ${JAR_FILE}:${FN_JAR_FILE} fniki.wiki.PersistedState
serialver -classpath ${JAR_FILE}:${FN_JAR_FILE} fniki.wiki.Configuration
serialver -classpath ${JAR_FILE}:${FN_JAR_FILE} fniki.wiki.Configuration
serialver -classpath ${JAR_FILE}:${FN_JAR_FILE} fniki.wiki.WikiInfo
serialver -classpath ${JAR_FILE}:${FN_JAR_FILE} fniki.wiki.SiteTheme
0
source
            
schemagen \
serialver \
wsgen \
wsimport \
xjc
do
oldpath=`update-alternatives --query $i | grep ^Best | awk '{print $2}'`

description

serialver returns the serialVersionUID for one or more classes in a form suitable for copying into an evolving class. When invoked with no arguments it prints a usage line.

options

-classpath <directories and zip/jar files separated

by :> Set search path for application classes and resources.

-show

Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display the serialVersionUID.

-Joption

Pass 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 megabytes.

notes

The serialver command loads and initializes the specified classes in its virtual machine, and by default, it does not set a security manager. If serialver is to be run with untrusted classes, a security manager can be set with the following option:

-J-Djava.security.manager

and, if necessary, a security policy can be specified with the following option:

-J-Djava.security.policy=<policy file>


see also

java.io.ObjectStreamClass @
http://java.sun.com/javase/6/docs/api/java/io/objectstreamclass.html

How can this site be more helpful to YOU ?


give  feedback