.classpath file is missing when cloning a repository

Simon King simon at simonking.org.uk
Tue Nov 11 14:26:24 UTC 2014


On Tue, Nov 11, 2014 at 2:19 PM, Adrian Klaver
<adrian.klaver at aklaver.com> wrote:
> On 11/11/2014 06:01 AM, Eyvind Almqvist wrote:
>>
>> We set up a main repository on Bitbucket. Someone in the team then made
>> an almost empty Eclipse project and pushed it to the main repository.
>> The others in the team then cloned the main repository.  The cloning
>> works for everyone except one member of the team, who has a Linux PC.
>> The .classpath file is missing in his cloned project. It is not possible
>> to run the project, the error message is
>> "The project cannot be built until the build path errors are resolved.
>> Unbound classpath container: 'JRE System Library [Java SE-1.8]' in
>> project 'FiveFive'"
>> I tried to clone the project on my PC with the team members login and
>> username. It works without problems on my PC. What could be the cause of
>> this issue and how can I solve it? Could it be because all of the other
>> team members has Windows and the guy with the missing classpath has Linux?
>
>
> Not sure, but I would suspect he has an .hginore file that has a pattern
> causing .classpath to be not cloned.
>

(I'm not sure if the above was meant literally, but a .hgignore file
can't cause a file not to be cloned, but it can cause it not to be "hg
add"-ed to the repository in the first place.)

Does this help:

http://stackoverflow.com/questions/6798281/unbound-class-path-container-error-in-eclipse

(I strongly suspect this is not a mercurial problem, and you would see
the same issue if your Linux user simply copied the project directory
from the Windows user)

Simon



More information about the Mercurial mailing list