C
CapCity
OK, experienced developer, but new to Java (and eclipse, which is another
hurdle until I get used to it).
I inherited a project that has several classes that implement Serializable
and have a serialVersionUID variable. I created a new class that is a clone
of several of these existing ones and want to generate a serialVersionUID
for it. Looking on-line, I found several descriptions for serialver. I've
had no luck with it. I keep getting "class xxx not found" messages.
The file is a few folders deep, say src/dir1/dir2/dir3/myclass. From what
folder do I execute serialver and what do I use as the class name? The
package it belongs to would be dir1.dir2.dir3
Found an eclipse plug-in, but says the feature is "not available here", or
something like that.
I think an issue may be that these are all in .java files and not .class
files. But all the ones with serialVersionUIDs are .java files.
Also, do I need to generate a new one everytime the class changes?
BTW, the person who originally developed this doesn't remember how they were
generated.
Thanks!
hurdle until I get used to it).
I inherited a project that has several classes that implement Serializable
and have a serialVersionUID variable. I created a new class that is a clone
of several of these existing ones and want to generate a serialVersionUID
for it. Looking on-line, I found several descriptions for serialver. I've
had no luck with it. I keep getting "class xxx not found" messages.
The file is a few folders deep, say src/dir1/dir2/dir3/myclass. From what
folder do I execute serialver and what do I use as the class name? The
package it belongs to would be dir1.dir2.dir3
Found an eclipse plug-in, but says the feature is "not available here", or
something like that.
I think an issue may be that these are all in .java files and not .class
files. But all the ones with serialVersionUIDs are .java files.
Also, do I need to generate a new one everytime the class changes?
BTW, the person who originally developed this doesn't remember how they were
generated.
Thanks!