Access restriction: The method 'ServletContext.getResourceAsStream(String)' is not API
- 在做struts2專案的時候出現一個錯誤,如下:
提示ServletContext.getResourceAsStream(String) is not API… - 出現這個錯誤的原因是Java SE平臺的版本跟JDK的版本不相容造成的,更詳細瞭解參考:http://duzc2.iteye.com/blog/1570648
- 解決方法:專案右擊–>Build Path–>Configure Build Path–>Libraries選項卡–>點選JRE System Libraries–>Edit—>單選Workspace default JRE—>Finish–>Apply and Close,完成,問題解決。如果還是不行的話,同樣的步驟進入,不選擇Workspace default JRE,在Execution Enviroment下拉列表中選擇不同的搭配嘗試,可以解決問題。
- 如果出現其他的類似的is not API …的問題,解決方法一樣~~~~
相關推薦
Access restriction: The method 39;ServletContext.getResourceAsStream(String)39; is not API
在做struts2專案的時候出現一個錯誤,如下: 提示ServletContext.getResourceAsStream(String) is not API… 出現這個錯誤的原因是Java SE平臺的版本跟JDK的版本不相容造成的,更詳細瞭解參考:http://duzc2
Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not access
rac err ssi cte encode rar eth -a gen 準備使用Java進行圖片壓縮的時候,使用 import com.sun.image.codec.jpeg.*; 結果出現錯誤: Access restriction: The me
eclipse(優化八) eclipse maven專案報錯:Access restriction: The type 39;Timestamp39; is not API
報錯描述: Access restriction: The type 'Timestamp' is not API (restriction on required library 'C:\Program Files\Java\jdk1.7.0_25\jre\lib\rt.jar')
eclipse錯誤:Access restriction: The type 39;BASE64Decoder39; is not API
Access restriction: The type ‘BASE64Decoder’ is not API (restriction on required library ‘D:\java\jdk1.7.0_45\jre\lib\rt.jar’) 解決其實很簡單,把JRE System Library
Access restriction: The type 39;JPEGCodec39; is not API
ssi cat jpeg .net jre warning 今天 req tail 問題 今天導入項目時Eclipse報錯如下: Access restriction: The type ‘JPEGCodec‘ is not API (restriction on requ
Access restriction: The type 39;Unsafe39; is not API
war .net gmail forbidden window access compile acc ng- 錯誤:Access restriction: The type ‘Unsafe‘ is not API Eclipse中有一種叫做存取限制的機制,來防止你錯誤使用
Access restriction: The type JPEGCodec is not accessible due to restriction on required library
eclipse的設定問題,它預設把這些受訪問限制的API設成了ERROR,你只要把 Windows-Preferences-Java-Complicer-Errors/Warnings 裡面的Deprecated and restricted API中的Forbidden referen
錯誤總結:Access restriction: The type ** is not accessible due to restriction on required library
來到新公司,下載程式碼檢視後發現有很多地方標紅報錯了. 仔細一看都是Access restriction: The type ** is not accessible due to restriction on required library型別的錯誤,這種
Access restriction: The type XMLSerializer is not API (restriction on required library rt.jar
問題 使用 com.sun.org.apache.xml.internal.serialize.OutputFormat 生成XML時找不到這個類,顯示受限制的rt.jar包 方案 右鍵專案 --> properties --> java B
Access restriction: The type is not accessible due to restriction on required library問題處理
在做Java時,遇到了個小問題,在Import 包資源時出現: Access restriction: The type XXX is not accessible due to re
踩了兩次坑The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory的解決方法
後來在網上查了查,說是因為專案中有像jsp-api.jar servlet-api.jar跟tomcat6的lib中同樣的包,但版本比tomcat6的版本要低,在執行的時候,因為會優先載入專案中的包,所以 產生了錯誤,把專案中和tomcat相同的包刪除(必須刪除,如果替換
Resource Path Location Type Access restriction: The constructor 'BASE64Decoder()' is not
匯入的新專案出現以下錯誤:ResourcePathLocationType Access restriction: The constructor 'BASE64Decoder()' is not解決方法:專案(右鍵)-->Properties-->java bu
Access restriction: The type 'XXX' is not API (restriction on required library 'C:\Progra
1.問題 Eclipse 編譯錯誤: Access restriction: The type 'xxx' is not API (restriction on required library 'C:\Progra。。。 我引入一個 import sun.misc
Realm 處理List<String> 問題 Type parameter 39;java.lang.String39; is not within its bound; should implement 39;io.realm.RealmModel
class etc tap obj sap mob ava get not public class InitAppBean extends RealmObject { private String sapling; private String logi
The directory 39;/home/XXX/.cache/pip/http39; or its parent directory is not owned by the current user
執行安裝命令: $ for req in $(cat requirements.txt); do sudo pip install $req; done 出現黃色提示: The directory '/home/pheehu/.cache/pip/http' or its parent
【ASP.NET Core】解決“The required antiforgery cookie "xxx" is not present”的錯誤
view 請求 cep lec hidden 擴展方法 url builder 驗證 當你在頁面上用 form post 內容時,可能會遇到以下異常: The required antiforgery cookie "????????" is not present.
laravel新建應用報錯:The Process class relies on proc_open, which is not
#laravel new blog Crafting application...
mac系統docker釋出映象報錯:錯誤"the user name or passphrase you entered is not correct"解決
docker build映象完成後,釋出映象時提示許可權不足,使用命令docker login進行登入,輸入使用者名稱密碼後報錯:"the user name or passphrase you entered is not correct",嘗試過重灌docker、重設密碼均不奏效。 解決方法
The 'microsoft.jet.oledb.4.0' provider is not registered on the local machin 的解決方案
分公司上一新網站,用的也是CMS的模式,為了省事用的access,在64位伺服器上出現此問題。 The 'microsoft.jet.oledb.4.0' provider is not registered on the local machin 直接百度後找了各種解決方
java.io.IOException: The temporary upload location [C:\Users\...\ROOT] is not valid
原文出處 spring boot 內部上傳檔案臨時儲存路徑不存在了,現在有兩種辦法: 第一種:專案重啟,自動重新生成臨時儲存路徑 第二種:注入一個Bean,手動添設定下臨時儲存路徑,程式碼如下: @Bean MultipartConfigElement