Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » "Source folder is not a Java project" cannot add class(Mercurial and Bitbucket problem)
"Source folder is not a Java project" cannot add class [message #509161] Thu, 21 January 2010 09:47 Go to next message
Eclipse UserFriend
Upon importing a mercurial project into Eclipse I am unable to add any new java classes to it as I get an "Source folder is not a Java project" error and am unable to add the class to the project.

I have tried importing the mercurial project in two ways. One is to use the mercurial plug-in.

The other way I have tried is to import it into the workspace via the command-line hg command, then create a new java project of the same name as the newly created folder produced by the mercurial sync-thingy. Eclipse then picks this up and creates a java project with the same name as the mercurial project, correct files, etc. The icon has a little 'J' next to it, suggesting that it is indeed a java project and in the project is a "JRE System Library" folder. Yet I still can't add new java class files as I get told it is not a java project by Eclipse.

I think this issue is with Eclipse, although I'm using the mercurial plug-in and bitbucket (bitbucket mailing group suggested I try here).

Any help most appreciated as I need this to work fairly soon!!!
Re: "Source folder is not a Java project" cannot add class [message #509193 is a reply to message #509161] Thu, 21 January 2010 11:04 Go to previous message
Eclipse UserFriend
Be sure to check the .project and .classpath files into mercurial. These
files define the project as a Java project.

"Thomas" <thomaschristopherking@googlemail.com> wrote in message
news:hj9pen$fan$1@build.eclipse.org...
> Upon importing a mercurial project into Eclipse I am unable to add any new
> java classes to it as I get an "Source folder is not a Java project" error
> and am unable to add the class to the project.
>
> I have tried importing the mercurial project in two ways. One is to use
> the mercurial plug-in.
>
> The other way I have tried is to import it into the workspace via the
> command-line hg command, then create a new java project of the same name
> as the newly created folder produced by the mercurial sync-thingy. Eclipse
> then picks this up and creates a java project with the same name as the
> mercurial project, correct files, etc. The icon has a little 'J' next to
> it, suggesting that it is indeed a java project and in the project is a
> "JRE System Library" folder. Yet I still can't add new java class files as
> I get told it is not a java project by Eclipse.
>
> I think this issue is with Eclipse, although I'm using the mercurial
> plug-in and bitbucket (bitbucket mailing group suggested I try here).
>
> Any help most appreciated as I need this to work fairly soon!!!
Previous Topic:Debug JNI & C++ code called from within JAVA application
Next Topic:Can project type be viewed or changed?
Goto Forum:
  


Current Time: Wed Mar 19 21:01:33 EDT 2025

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

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

Back to the top