"Source folder is not a Java project" cannot add class [message #509161] |
Thu, 21 January 2010 09:47  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!!!
|
|
|
Powered by
FUDForum. Page generated in 0.04072 seconds