Skip to main content



      Home
Home » Newcomers » Newcomers » Problems compiling after CVS checkout.
Problems compiling after CVS checkout. [message #157036] Thu, 15 June 2006 11:34 Go to next message
Eclipse UserFriend
Originally posted by: mbusoft.hotmail.com

After checking out my project from cvs (first time in eclipse), I was
unable to run the classes (got "the selection does not contain a main
type). I found that eclipse was not compiling the source code. I tried
running the ant, and setting the output folder to the default output
folder, but this didn't work either; I am unable to see the class files
from within eclipse.

Does anyone know how to get around this problem?

Best regards,
Mads
Re: Problems compiling after CVS checkout. [message #157094 is a reply to message #157036] Fri, 16 June 2006 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbusoft.hotmail.com

when I checkout through the project wizard and specify java project, it
works.
Re: Problems compiling after CVS checkout. [message #157115 is a reply to message #157036] Fri, 16 June 2006 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cburgess.progressrail.com

Mads wrote:
> After checking out my project from cvs (first time in eclipse), I was
> unable to run the classes (got "the selection does not contain a main
> type). I found that eclipse was not compiling the source code. I tried
> running the ant, and setting the output folder to the default output
> folder, but this didn't work either; I am unable to see the class files
> from within eclipse.
>
> Does anyone know how to get around this problem?
>
> Best regards,
> Mads
>

If the original code has its own ant build.xml file, I don't think
Eclipse picks it up to use. I've had loads of "fun" in the past trying
to get Eclipse to use a code base's existing build.xml file to build the
classes in Eclipse following the layout established in the original
build.xml, and it was always a headache.

Eclipse implicitly creates its own build.xml file for its internal Ant,
which you will typically never see or edit. To execute your original
build.xml file, you'd have to perform "Run As" to get Eclipse to realize
its an Ant build file. But again, trying to get Eclipse to use a
working, command-line usable build.xml file has always been difficult
for me to set up inside Eclipse.
Re: Problems compiling after CVS checkout. [message #157123 is a reply to message #157094] Fri, 16 June 2006 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cburgess.progressrail.com

Mads wrote:
> when I checkout through the project wizard and specify java project, it
> works.

In that case, maybe it's not an existing build.xml file that's colliding
with an internal Ant build in Eclipse. Perhaps your original checkout
via Eclipse was NOT done in a way that told Eclipse that the checked-out
code should be treated as a "Java Project". I've been caught in that
snag before myself.
Re: Problems compiling after CVS checkout. [message #161763 is a reply to message #157123] Wed, 19 July 2006 18:01 Go to previous message
Eclipse UserFriend
Originally posted by: thahn01.t-online.de

Chuck Burgess wrote:

> Mads wrote:
>> when I checkout through the project wizard and specify java project, it
>> works.
>
> In that case, maybe it's not an existing build.xml file that's colliding
> with an internal Ant build in Eclipse. Perhaps your original checkout
> via Eclipse was NOT done in a way that told Eclipse that the checked-out
> code should be treated as a "Java Project". I've been caught in that
> snag before myself.

Uhhm.
I checked out some CVS code according to the Cheat sheet and it
works nicely BUT ...
it doesn't compile.
I have run the ant file as a ant file, it works fine but within
Eclipse it still doesnt get beyond "the selection does not contain a main
type"
If I check out by hand on the shell and open a new project via
working ant build file, everything is fine.
But this should work better than manual CVS handling.

I dont know what to do ...

Tnx Thomas
Previous Topic:Editor History
Next Topic:How to create a SVN repository view?
Goto Forum:
  


Current Time: Wed Mar 12 07:32:01 EDT 2025

Powered by FUDForum. Page generated in 0.05097 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top