The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer

来源:互联网 发布:变电话号码的软件 编辑:程序博客网 时间:2024/04/30 09:00

The method read(CharBuffer) from the type Reader refers to the missing type CharBuffer

这个错误好恶心。我的eclipse的jdk版本是1.8的。所以当我写字符流输出的时候就遇到了这个问题,如下:
这里写图片描述


我想都不想的,又装了一个jdk1.7的版本。然后再配置环境(我不知道这样对不对,但是我的是没问题的)。然后

这里写图片描述
这里写图片描述


然后就没又在爆红了,现在一切都正常了

这里写图片描述

其他方案:

其他解决办法:http://blog.csdn.net/wo519074786/article/details/7697967

jdk1.7下载:http://download.csdn.net/download/chun201010/7824469

0 0
原创粉丝点击