问题描述

 

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

 

 

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。

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

 

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

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

 

 

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

 

 问题解决了!

相关文章: