使用sun.misc.BASE64Decoder出錯解決方案
import=”sun.misc.BASE64Decoder”
出現錯誤提示為:Access restriction: The type BASE64Decoder is not accessible due to restriction
on required library D:\ProgramFiles\MyEclipse\jre\lib\rt.jar
Solution 1 :
BASE64Decoder
這個沒有java doc,屬於jdk裡不推薦使用的工具類
解決方案:
使用apache common中的Base64替換
你可以在這裡下載Apache commons codec:
http://commons.apache.org/codec/
替換一下就可以了
強烈建議不要用sun.misc,是不安全的 ,最好不要使用
方法2:
1. Open project properties.
2. Select Java Build Path node.
3. Select Libraries tab.
4. Remove JRE System Library.
5. Add Library JRE System Library.
相關推薦
使用sun.misc.BASE64Decoder出錯解決方案
方法1 : import=”sun.misc.BASE64Decoder” 出現錯誤提示為:Access restriction: The type BASE64Decoder is not accessible due to restriction on required library D:\Progra
maven打包編譯的異常 :sun.misc.BASE64Decoder 是 Sun 的專用 API,可能會在未來版本中刪除的解決方法
maven打包編譯的錯誤 :sun.misc.BASE64Decoder 是 Sun 的專用 API,可能會在未來版本中刪除的解決辦法 Maven編譯時報錯: 警告:sun.misc.BASE64Decoder 是 Sun 的專用 API,可能會在未來版本中刪除 處理方法
sun.misc.BASE64Decoder與sun.misc.BASE64Encoder 替代方案
最近需要使用Base64上傳圖片,但是返現sun.misc.BASE64Decoder 為已經過期的包,此包為以前sun公司的內部包,可以下載此包,但是不利於現在Maven方式構建,可以使用如下方式替代。
linux rz上傳文件及出錯解決方案
不同 都沒有 fff sca 控制字符 secure 大小 ctrl+ asc 在把Windows上的文件傳至Linux端時用到SecureCRT,一般小文件都沒有問題,文件太大時則出現了上傳後的文件只有幾K大小,當然大於2個G的是不可能傳的上去的了。對於幾百M到1G多的大
用Navicat連線Oracle資料庫出錯解決方案
用Navicat連線Oracle資料庫時出現如下錯誤 上網一查原來是oci.dll版本不對。因為Navicat是通過oracle客戶端連線Oracle伺服器的,Oracle的客戶端分為兩種,一種是標準版,一種是簡潔版,即Or
Mac 安裝 matplotlib 出錯解決方案
Traceback (most recent call last): File "main.py", line 23, in <module> from inference_utils import get_suffix, calc_roi_box, crop_i
Android Studio:resource android:attr/dialogCornerRadius not found 出錯解決方案
報錯資訊: error: resource android:attr/dialogCornerRadius not found error: resource android:attr/fontVariationSettings not found error:
Python自動化測試過程中出錯解決方案:retrying
最近發現的新的解決方案:retrying retrying是一個 Python的重試包,可以用來自動重試一些可能執行失敗的程式段。retrying提供一個裝飾器函式retry,被裝飾的函式就會在執行失敗的條件下重新執行,預設只要一直報錯就會不斷重試。 import random from retr
Mnist資料集匯入出錯解決方案
Mnist資料集匯入出錯 在進行Mnist手寫識別的專案中,出現了Mnist資料集下載出錯的問題,報出以下錯誤: Exception: URL fetch failure on https://s3.amazonaws.com/img-datasets/mnist.n
安裝Jupyter Notebook過程及出錯解決方案
1、直接安裝:pip3 install jupyter 2、jupyter notebook 3、①報錯: 解決:重新安裝一下iPython ②如果報錯沒有:prompt-toolkit
Ubuntu下安裝MySQL 5.7.24以及修改datadir目錄出錯解決方案
文章目錄 安裝MySQL 1. 下載Ubuntu Deb軟體包 &nbs
Linux中yum命令映象源出錯解決方案
好頭疼,最近虛擬機器中的linux系統一直不能安裝東西,只要install就報找不到可用的連結源。。。但是要安裝東西啊,所以就著手解決下。 解決方法:更換源 1.備份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yu
本地java連結遠端伺服器Linux上redis出錯解決方案
在redis.conf檔案中bind 127.0.0.1加上#號 在redis.conf檔案中把 #requirepass 的#號去掉,在後面加上鍊接redis-server的密碼 在本
windows10編譯 Pycocotools出錯解決方案
本文是 Pycocotools 編譯踩坑筆記。如果您的環境是 Linux,那麼恭喜您,獲取 COCO 原始碼,簡單一個 make 即可,本文可以忽略了;然而,如果是 Windows,滿滿都是坑,生踩過來,筆者也是醉了。 名詞解釋 COCO 是什麼? Microsoft COCO 是一個標註過的圖片資料集,可
sql server2017從MySQL匯入資料到SQL Server時報錯:截斷行處理設定指定截斷時出錯解決方案
今天晚上在跑SQL Server代理作業時報錯: 錯誤: 0xC020902A,位於 credit_ious_instalment, 源 - 查詢 [2]: “源 - 查詢”由於發生截斷而失敗,而且針對“源 - 查詢.輸出[ADO NET 源輸出].列[ious_no]”的截斷行處理設定
DEDECMS後臺文章釋出出錯解決方案
出錯詳情:把資料儲存到資料庫附加表 `dede_addonarticle` 時出錯, 請把相關資訊提交給DedeCms官方。 Duplicate entry ’88888′ for key ‘P
MyEclipse匯出war包時出錯解決方案…
myeclipse10.7的版本破解後,匯出war包時報“SECURITY ALERT: INTEGERITY CHECK ERROR”的錯誤。 選中專案-》export-》java
編譯Android sdk出錯 解決方案
用Android原始碼編譯sdk過程中出現以下錯誤: flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data:Assertion 'cnt < (sizeof (nl_value_type_LC_TIME) / sizeof (_nl_v
定位指定伺服器、例項時出錯解決方案
今天在學習資料庫時,發現連線失敗了,之前還好好的,然後好一頓找,其實網上關於這方面的解決方法有很多,我只是記錄一下,方便自己日後查閱。 問題描述 在用SQL SERVER賬號進行資料庫連線時,發生如圖所示錯誤: 問題分析及解決方法 分析:無法
maven打包編譯的錯誤:sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除
今天遇到 sun.misc.BASE64Decoder是Sun的專用API,可能會在未來版本中刪除 的錯誤 算是maven的一個bug吧。 maven-compiler-plugin 2.3.2 釋出