---
title: "import sun.misc.BASE64Decoder;报错的解决办法"
author: "bluebubble"
date: "2012-11-20T10:53:33Z"
tags: []
categories: ["编程语言"]
slug: "import-sun-misc-base64decoder"
draft: false
lastmod: "2012-11-20T10:53:33Z"
id: 1730436
url: "https://bluebubble.iteye.com/blog/1730436"
---

很多博主已经提出了解决方案，具体是在 Java Build Path 中先Remove掉Libraries中的JRE System Library， 然后在 Add Library 中选择 JRE System Library 就可以了，这里需要补充的是在 Add Library 中选择 JRE System Library后，有Execution environment和alternate JRE两个选择，我们如果没有设置过前者，需要选择后面的alternate JRE，这样会自动找到自己曾经安装的jdk，问题就解决了！