---
title: "Could not write file: D:\\MyCode\\activiti\\testactiviti\\.classpath."
author: "Software_King"
date: "2015-06-14T16:02:21Z"
tags: []
categories: ["企业架构"]
slug: "could-not-write-file-d-mycode-activiti-testactiviti-classpath"
draft: false
lastmod: "2015-06-14T16:03:49Z"
id: 2219553
url: "https://software-king.iteye.com/blog/2219553"
---

问题如下：

      
![](http://dl2.iteye.com/upload/attachment/0109/4968/51d62415-3208-38d1-a2dd-cd43275a2b88.png)  
   'Setting build path' has encountered a problem.Could not write file:   

     D:\\MyCode\\activiti\\testactiviti\\.classpath.

   The cause was copying a workspace from Linux to Windows. The windows hidden attribute is set on the .classpath file. Removing this attribute fixes the error.

解决方案：

解决 

工程---------&gt;.classpath 文件---------&gt;右键属性---------&gt;将隐藏复选框去掉---------&gt;确定---------&gt;重新设置工程Build Path。 

&lt;!--EndFragment--&gt;

![](http://dl2.iteye.com/upload/attachment/0109/4970/fd3f1531-d8d0-352b-8aff-ab222e4016d9.png)