首页 > 编程语言 > 详细

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

时间:2017-05-31 23:36:02      阅读:1279      评论:0      收藏:0      [点我收藏+]

问题描述

 

技术分享

 

 

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
	The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
	The method getText() from the type TagNode refers to the missing type CharSequence

	at com.dajiangtai.djt_spider.service.impl.YOUKUProcessService.<init>(YOUKUProcessService.java:22)
	at com.dajiangtai.djt_spider.start.StartDSJCount.main(StartDSJCount.java:28)

 

解决办法:

此异常是由于jre的版本不匹配导致的。笔者在使用java8时出现此问题解决方案为:配置项目的编译路径将jre换为更低版本,比如java6。

技术分享

 

 我本来使用的是jdk1.8现在换回来myeclipse自带的1.6版本

技术分享

 

 

技术分享

 

 问题解决了!

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

原文:http://www.cnblogs.com/braveym/p/6926348.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!