It is currently 24 Apr 2024, 20:51
   
Text Size

using Eclipse

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

using Eclipse

Postby cyclope » 02 Nov 2009, 18:11

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...
cyclope
 
Posts: 69
Joined: 28 Sep 2009, 18:08
Has thanked: 0 time
Been thanked: 0 time

Re: using Eclipse

Postby Chris H. » 02 Nov 2009, 18:56

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. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: using Eclipse

Postby silly freak » 02 Nov 2009, 19:29

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...
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: using Eclipse

Postby cyclope » 03 Nov 2009, 11:56

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...
cyclope
 
Posts: 69
Joined: 28 Sep 2009, 18:08
Has thanked: 0 time
Been thanked: 0 time

Re: using Eclipse

Postby Chris H. » 03 Nov 2009, 12:56

You are welcome. :)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: using Eclipse

Postby Rob Cashwalker » 03 Nov 2009, 15:10

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.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: using Eclipse

Postby Chris H. » 03 Nov 2009, 17:06

:lol:
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests


Who is online

In total there are 36 users online :: 0 registered, 0 hidden and 36 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 36 guests

Login Form