百里登风

导航

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。

 

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

 

 

 

 问题解决了!

posted on 2017-05-31 23:09  百里登峰  阅读(2326)  评论(0)    收藏  举报