报错:The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .c

在用MY Eclipse 中搭建Web Project的环境时,出现报错信息:The typeJava.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files;究竟是什么原因呢?

Google了一下,看到如下解答:


也就是说, java.lang.CharSequence是rt.jar包中的一个雷,在JVM7.0中是没有问题的,但是在JVM8.0中就会出问题。

有了这个解释就好办了,删除掉之前装好的JDK8,重新下载个低版本的JDK7,问题解决!

附上下载链接:http://www.Oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html


你可能感兴趣的:(报错:The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .c)