It is currently 27 Apr 2024, 11:27
   
Text Size

Weird error in eclipse

Post MTG Forge Related Programming Questions Here

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

Weird error in eclipse

Postby Rob Cashwalker » 14 Feb 2010, 15:49

I've been adding abDrawCards to CardFactory. I've updated the entire project to the HEAD revision. But when I try to run, I get an error that it can't find a main method in Gui_NewGame.
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: Weird error in eclipse

Postby DennisBergkamp » 14 Feb 2010, 16:08

Weird, can you paste the code? I'll try it on my local version.

Latest SVN definitely works.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Weird error in eclipse

Postby silly freak » 14 Feb 2010, 16:36

this may mean that the project wasn't built. the method is in the source, but since the classes were not compiled, no main is found. are you sure that you build path is complete and there is no error in the problems view?
___

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: Weird error in eclipse

Postby Rob Cashwalker » 14 Feb 2010, 18:06

Yeah, the problem list pointed me to an error with the .classpath file. But I couldn't find that file in the project hierarchy in eclipse. So I find it in explorer, and open in Notepad++. Apparantly one of the SVN updates "conflicted" with my copy, so it had those >>>>>> ===== <<<<<< lines causing it to choke. Removed the old section, and reloaded eclipse, and it was able to rebuild. Now, a few of my code errors showed up, which I hadn't realized I had... so I fixed those up. And it's running now.

thanks guys, I didn't even think to check the problem list. I just saw a red X on the project, but since I didn't see any red X on any code file, I didn't think much of it.
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: Weird error in eclipse

Postby silly freak » 15 Feb 2010, 00:04

I think I use eclipse too much... recognizing this error so good, lol
___

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: Weird error in eclipse

Postby Rob Cashwalker » 15 Feb 2010, 03:19

That's why this community is so awesome - no one person here has all the expertise needed to do it all alone.
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


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 117 guests


Who is online

In total there are 117 users online :: 0 registered, 0 hidden and 117 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 117 guests

Login Form