0
点赞
收藏
分享

微信扫一扫

The type java.lang.CharSequence cannot be resolved.

问题描述

 

The type java.lang.CharSequence cannot be resolved._java

 

 

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._问题解决方案_02

 

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

The type java.lang.CharSequence cannot be resolved._问题解决方案_03

 

 

The type java.lang.CharSequence cannot be resolved._java_04

 

 问题解决了!

举报

相关推荐

0 条评论