2015-09-07 93 views
1

我在工作區中的某些項目中出現此錯誤。 我已經使用eclipse的露娜和朱諾版本嘗試,但有錯誤還是在那裏在日食的兩個版本項目'ProjectA'中的源文件夾'folder1'無法在Eclipse中輸出到不同的源文件夾'folder2'

.classpath文件的內容

<?xml version="1.0" encoding="UTF-8"?> 
<classpath> 
    <classpathentry kind="src" path="folder1"/> 
    <classpathentry kind="src" path="folder2"/> 
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere v6.1 JRE"/> 
    <classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61"/> 
    <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/hibernate"/> 
    <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/log4j"/> 
    <classpathentry kind="src" path="/ProjectB"/> 
    <classpathentry kind="src" path="/ProjectC"/> 
    <classpathentry combineaccessrules="false" kind="src" path="/ProjectD"/> 
    <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> 
    <classpathentry kind="output" path="folder2"/> 
</classpath> 

有在項目B,項目C沒有構建路徑錯誤,ProjectD

+0

您可以發佈您的''.classpath'文件的內容ProjectA'? –

回答

2

沒有合適的解決方案 您可以在項目首選項中將該問題從錯誤更改爲警告。

在項目屬性 - > Java的反編譯>建立

確保啓用項目的具體設置進行檢查,在構建路徑問題, 改變輸出的位置,距離誤差重疊源位置警告/忽略。

您還可以找到對這個問題的一些相關討論過here

3

我沒有得到這個問題的解決方案:

有一個在創建時的哪些特定的文件夾不能輸出規範項目。我將該文件夾重命名爲.old關閉日食,並試圖刪除它,因爲它是一個示例文件夾。

如果其中一個不重要的文件夾在關閉eclipse並重試後重命名該文件夾。 這將解決問題。

+0

Ashok - 您可以將自己的答案標記爲已接受,因爲它已經有一段時間了。感謝您分享您的調查結果。 – micstr

0

對我來說,解決辦法是加入這行

org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=ignore 

到.settings/org.eclipse.jdt.core.prefs

相關問題