Invalid project file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Invalid project file

跳至解决方案
1,397 次查看
cab
Contributor III

CW 10.2, HC9S08LG32 Win32x64

 

This is a hard error for me--happens every time even after a fresh CW install.  But I don't see any complaints. I must not understand how to import a project, even when CW is leading me by the nose.

 

From the Welcome screen I choose [Project Importer].  I browse for the project and choose one I have been recently using.  I open it and choose .project (It doesn't give me a clue what kind of file to pick, but it only takes .project or .cproject). If I choose either one I get [Invalid project file].  Tried on more than one project.

  • Maybe that is the reason for my recent problems with "Error importing Task" and "NullPointerException."
  • I inherited the project and received it as a zip-file.  After unzipping, CW couldn't see it no matter what I set my workspace to.  And if I tried to "import" it I always got "invalid project file.
  • So I built a bare-bones project then copied the source files into the Sources folder using Windows copy-and-paste.  The eclipse tutorial said I could do this.  That project hasbeen working just fine.  Until I recently copied it and started using the copy--and got all kinds of' "Error importing task" and NPE's and  MC9S08LG32.xml getting truncated to 0 bytes.

  • So I want to move it out of my workspace and away from my .metadata file.  This should be a good project file, I know the history, but it won't import.  Looks like I'll have to start with just the sources again.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,138 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

the 'Project Importer' from the welcome screen imports 'classic' projects (*.mcp) from the non-eclipse version of CodeWarrior.

Anyway, that importer only works for very simply classic projects, so I rather do not use it at all.

 

To import existing eclipse projects into your workspace, use File > Import > General > Existing projects.

There are other ways too (like drag&drop or archive files).

See http://mcuoneclipse.wordpress.com/2012/05/07/exporting-and-importing-projects-in-eclipse/

 

Hope this helps,

BK

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,139 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

the 'Project Importer' from the welcome screen imports 'classic' projects (*.mcp) from the non-eclipse version of CodeWarrior.

Anyway, that importer only works for very simply classic projects, so I rather do not use it at all.

 

To import existing eclipse projects into your workspace, use File > Import > General > Existing projects.

There are other ways too (like drag&drop or archive files).

See http://mcuoneclipse.wordpress.com/2012/05/07/exporting-and-importing-projects-in-eclipse/

 

Hope this helps,

BK

0 项奖励
回复