Page 1 of 1

using Eclipse

PostPosted: 02 Nov 2009, 18:11
by cyclope
Hi , i'm trying to use Eclipse to test the cards i've tried to code but i don't know how to generate a long serialversionUID with Eclipse :
in eclipse , i've got two choices:
- add default UID
- add generated UID
Which one to choose ?

With the first , it insert 1L as serielversion UID
and with the second it says me that he can't do ....

Help me please...

Re: using Eclipse

PostPosted: 02 Nov 2009, 18:56
by Chris H.
cyclope wrote:Hi , i'm trying to use Eclipse to test the cards i've tried to code but i don't know how to generate a long serialversionUID with Eclipse :
in eclipse , i've got two choices:
- add default UID
- add generated UID
Which one to choose ?

With the first , it insert 1L as serielversion UID
and with the second it says me that he can't do ....

Help me please...
`
I will try to help and I also have a Mac. :wink:

You want to use the second choice, add generated UID. I have received an error message at times. Something about a class could not be found?

You may want to make sure that there are no red colored errors or yellow colored warnings before you try to generate a UID. A yellow warning for the missing UID is OK.

I keep trying to generate the UID until I finally get one. Even then, Eclipse fails to see the UID and I will have to generate the UID a second time before the yellow warning will go away. As the yellow warning disappears, a red warning will appear because there is now two UID's.

The second UID will have the same string as the first. I delete one of the long serialversionUID's and the errors/warnings related to UID's will disappear. At this point I will zip the project into an archive in case other problems develop. :)

Re: using Eclipse

PostPosted: 02 Nov 2009, 19:29
by silly freak
just for test ing the card, it's not that important to have the UID. it's better of course to have it from the beginning on. if eclipse says "class is missing", that might point on that the project is not fully rebuilt yet (check the status bar at the right bottom). that can easily happen, as CardFactory will take some time because of its size...

Re: using Eclipse

PostPosted: 03 Nov 2009, 11:56
by cyclope
Thanks for your Help Chris and Silly Freak... I've succeeded in generate longserialversionUID with Eclipse and i can build a run-forge.jar file to use my new cards...

Re: using Eclipse

PostPosted: 03 Nov 2009, 12:56
by Chris H.
You are welcome. :)

Re: using Eclipse

PostPosted: 03 Nov 2009, 15:10
by Rob Cashwalker
What I've experienced - when you try to generate two UID's in a row, Eclipse throws up a dialog box about either saving first or continue anyway. In that case, I continue anyway.

Also, in a pinch you can just define it manually - mash your hand on the numpad to get some numbers at random.

Re: using Eclipse

PostPosted: 03 Nov 2009, 17:06
by Chris H.
:lol: