如何處理Eclipse錯誤訊息 The declared package does not match the expected package
我從github下載了一個開源專案後,匯入到自己Eclipse之後,遇到了這個煩人的錯誤訊息:
The declared package "com.sap.smartService" does not match the expected package "main.java.com.sap.smartService"
這是我的專案檔案目錄:
解決方案:對專案點選右鍵,選擇Properties->Build Path, 發現src資料夾被設為build path。
首先右鍵src資料夾,選擇Remove from Build Path將其從build path中移除:
然後選擇src/main下面的java資料夾,設定成build path,重啟Eclipse:
錯誤即消失:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
相關推薦
如何處理Eclipse錯誤訊息 The declared package does not match the expected package
我從github下載了一個開源專案後,匯入到自己Eclipse之後,遇到了這個煩人的錯誤訊息: The declared package "com.sap.smartService" does not match the expected package "main.java.com.sap.smartSer
如何處理Eclipse錯誤消息 The declared package does not match the expected package
下載 分享 開源項目 錯誤 rop cte 是我 遇到 images 我從github下載了一個開源項目後,導入到自己Eclipse之後,遇到了這個煩人的錯誤消息: The declared package "com.sap.smartService" does not m
eclipse 中匯入原始碼出現 The declared package does not match the expected package的解決方法
eclipse 匯入專案,有時候會出現 java 檔案圖示由實心J變成空心J的問題,這個時候是不能編輯原始檔的,至於解決辦法就是右鍵該資料夾 – >BuildPath –> use as source folder 當以上問題解決後,如果你選擇的檔
解決:The declared package..does not match the expected package..
在MyEclipse中編寫Java程式碼時,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Access restriction : The type BASE64Decoder is not accessible due to res
解決:The declared package..does not match the expected package..(轉自百度空間)
Volatile修飾的成員變數在每次被執行緒訪問時,都強迫從共享記憶體中重讀該成員變數的值。而且,當成員變數發生變化時,強迫執行緒將變化值回寫到共享記憶體。這樣在任何時刻,兩個不同的執行緒總是看到某個成員變數的同一個值。 Java語言規範中指出:為了獲得最佳速度,允許執行緒儲存共享成員變數的私有拷貝,而且
從SVN上檢出Maven專案報紅叉錯誤,package錯誤 does not match the expected package "main.java.com.*
不知道為什麼有時候從SVN上檢出maven專案時,專案總是丟失資原始檔,然後就會出現以下的錯誤,does not match the expected package "main.java.com.* 這是由於build path 沒有載入到資原始檔目錄,右鍵點選專
報錯:The declared package "com.cas" does not match the expected package "main.java.com.cas"
1 、說明 環境說明:2018eclipse + jdk1.8 + tomcat 8 經常搗騰開發環境,昨天還好好的,今天來了,突然發現 所有的類都報錯,這可如何是好,措手不及的感覺有木有0.0,
the declared package does not match 解決辦法
the declared package does not match 很可能是包名不合規則所造成的,比如包名字上面有特殊符號。最簡單的解決辦法就是更改包名稱。 在專案上面單擊右鍵 選擇Refactor
新導入項目出現Java compiler level does not match the version of the installed java project facet問題處理
ima project 編譯 分享 face bsp 導入 ets 操作 在使用eclipse開發java類項目的時候,免不了會在不同的設備上開發編譯同一個項目,那麽就會出現Java compiler level does not match the version o
eclipse重新整理maven專案後出現Java compiler level does not match the version of the installed Java project face
如果出現標題所示的問題這裡提供一個根除的方法: 需要找到maven安裝路徑conf子路徑下的setting.xml檔案,開啟<profile>標籤指定你的jdk編譯版本即可,如下所示: <profile>
Maven構建專案後項目報Error錯誤Java compiler level does not match the version of the installed Java project fac
專案->右鍵->Project Facets->修改facets中java版本(下拉箭頭出)為要用的版本 Maven構建專案需注意 1.專案右鍵->Preferences->buildpath->jdk 2.專案右鍵->Prefer
關於eclipse的The source attachment does not contain the source for the file找不到類的說明
關於eclipse的The source attachment does not contain the source for the file找不到類的說明 在attach source中新增Fo
除錯SPI通訊時報“The initial(idle) state of CLK line does not match the settings”錯誤
最近在除錯STM32F103VCT6的SPI讀寫Flash時報“The initial(idle) state of CLK line does not match the settings”錯誤。剛開始以為是SPI CLK的BaudRatePrescaler這個數太小,導致
Java compiler level does not match the version of the installed Java project facet
led epo sin eclips path tar repo alt rip 更換jdk版本時報以下問題:Description Resource Path Location TypeJava compiler level does not match the vers
Type Java compiler level does not match the version of the installed Java project facet.項目內容沒錯但是項目上報錯,不影響運行
images ems rop http ges 內容 工程 版本 ren 1、Window->Show View->Problems 2、在項目上右鍵properties->project Facets->修改右側的version 保持一致 3
Git_錯誤_02_error: src refspec master does not match any
-m clas src 本地倉庫 目錄 解決方案 結果 log git add 現象:在一個目錄下初始化倉庫之後,就開始push到github,結果出現了這個錯誤。 錯因:初始化倉庫之後,並沒有使用git add,git commit 命令將文件添加到git倉庫中,
Java問題解決:Java compiler level does not match the version of the installed Java project facet.
問題 compiler .cn 技術分享 cnblogs java編譯 mpi 選中 per 問題原因:Java編譯器級別與Facted Project 中的Java 版本設定不匹配。 解決辦法:將兩者設置一致 1.查看Java compiler level : 選中項
解決java compiler level does not match the version of the installed java project facet
ref 目錄 ngs eclipse 項目 cor 點擊 遇到 log 因為遇到這個問題,所以記錄一下。 轉載自:https://blog.csdn.net/chszs/article/details/8125828 java compiler level does
Maven專案,報錯Java compiler level does not match the version of the installed Java project facet
使用eclipse新建maven專案。專案建立後手動修改org.eclipse.wst.common.project.facet.core.xml檔案, 修改專案 Project Facets 修改後發現專案名稱處報錯,有紅色叉號。 查詢eclipse中Problems
Java compiler level does not match the version of the installed Java project facet.]問題
Java compiler level does not match the version of the installed Java project facet.] 問題原因: Facted Project 中的Java 版本設定與專案的Java編譯器的compliance le