using Eclipse
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
using Eclipse
by 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...
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
by 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.
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.
-
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
by 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!
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
by 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
by 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.
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.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 36 guests