the resource is not on the build path of a php pro

來源:互聯網
上載者:User
一個工程已經存在了,例如叫myproject然後你將其匯入了eclipse中, 無論你是通過import實現的還是通過new了一個相同名字的myproject並且在相同的workspace下,實現項目的匯入, 你都可能遇到一個麻煩, 就是當你按住 'Ctrl'鍵並且點擊一個整合的類或方法時 會提示the resource is not on the build path of a php project

那麼怎麼辦呢:找到你的工程檔案位置, 例如我的工程myproject下肯定有一個檔案“.project” 用記事本開啟它你會看到

myproject


將其全部替換為

myprojectnet.sourceforge.phpeclipse.parserbuilderorg.eclipse.wst.validation.validationbuilderorg.eclipse.dltk.core.scriptbuilderorg.zend.php.zendserver.deployment.core.DeploymentBuilderorg.eclipse.php.core.PHPNatureorg.zend.php.zendserver.deployment.core.DeploymentNaturenet.sourceforge.phpeclipse.phpnature


注意eclipse的本班不同這個xml檔案可能會有差異,那麼怎麼辦呢, 你只需要建立一個新的工程, 然後將其產生的“.project”檔案 裡的內容複寫下, 然後替換你的目的工程的“.project”檔案 並作小小的改動將your project name就可以了

文章出處:

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.