Page 1 of 1

Weird error in eclipse

PostPosted: 14 Feb 2010, 15:49
by Rob Cashwalker
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.

Re: Weird error in eclipse

PostPosted: 14 Feb 2010, 16:08
by DennisBergkamp
Weird, can you paste the code? I'll try it on my local version.

Latest SVN definitely works.

Re: Weird error in eclipse

PostPosted: 14 Feb 2010, 16:36
by silly freak
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?

Re: Weird error in eclipse

PostPosted: 14 Feb 2010, 18:06
by Rob Cashwalker
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.

Re: Weird error in eclipse

PostPosted: 15 Feb 2010, 00:04
by silly freak
I think I use eclipse too much... recognizing this error so good, lol

Re: Weird error in eclipse

PostPosted: 15 Feb 2010, 03:19
by Rob Cashwalker
That's why this community is so awesome - no one person here has all the expertise needed to do it all alone.