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版本

 

 

 

 问题解决了!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM