This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Checked out CVS project not Java one

 
Ranch Hand
Posts: 226
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked out a project from CVS into Eclipse. Apparently Eclipse does not treat this as a Java project even though it is. So, whenever I typed something in the editor followed by a "." (for example, "System."), a window will appear with the following message:

This compilation unit is not on the build path of a Java project.

Also, since Eclipse does not treat this as a Java project, it does not do auto build and other stuff like code completions etc.

What can I do to get Eclipse to treat it as a Java project?

Thanks
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that you didn't check in the .project file (or delete it from CVS). Remove the project from the workspace.

Check it out again, using the option with the three dots (...) at the end. Eclipse should now notice that it isn't configured for Eclipse and show you a wizard to do so. Don't click "finish", but "next", until you come to the page where you can configure the project nature. Make it a java project. Voila.
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the "check out as" in eclipse in the CVS repository and use the wizard.
After specifying info about the CVS, it will ask you how to check out the project, choose "Java Project".
VOILA again.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic