Eclipse报错日志

版权声明:自己的一些学习的经验之谈,如有不足,请多多指教,谢谢. https://blog.csdn.net/zsh773992554/article/details/82595737

错误:Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds
错误提示就是我们限定了部署的时间导致的错误。

解决办法:修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。 把其中的start-timeout="45" 改为  start-timeout="100" 或者更长,根据不同的工程大小来设置。
最后重启eclipse就可以了。

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

The type java.util.regex.Pattern cannot be resolved.
 It is indirectly referenced from required 
.class files

解决办法:当你在Eclipse引用不同版本JDK工程时会发生该问题。由于你开发环境中应用了多个版本的JDK 或JRE导致的。Eclipse会按照最初的开发环境默认选择对应的Jre。如Eclipse上有jdk1.4开发的环境工程,当你在引入高版本jdk1.6开发的工程时,以上问题就出现了。
问题解决的方案如下:

进入window\preferences\java\Installed JREs 按Add --> Browse...--->选择jre安装路劲(我的jre路径是D:\Program Files\Java\jre1.6.0_02)--->OK  找到你的工程右键点击Properties选项 出现对话框后选择右边的Libraries选项卡 ---> 单击Add 了Library...--->选择Jre System Library... ---> Next--->选择Alternate    Jre 下的对应版本jre --> Finish ---> Ok

以上问题就可解决。

Multiple annotations found at this line:
    - Type safety: The method put(Object, Object) belongs to the raw type HashMap. 
     References to generic type HashMap<K,V> should be parameterized
    - Type safety: The method put(Object, Object) belongs to the raw type HashMap. 
     References to generic type HashMap<K,V> should be parameterized
    - The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from 
     required .class files


为避免页面乱码,charset你直接用户utf-8就可以了:
<%@ page contentType="text/html; charset=utf-8"%>
和你的开发工具设置的要一致

Cannot return from outside a function or method.

解决办法:window--preferences-myeclipse-validation-javascript validator for js file-Bulid
原因:MyEclipse遍野器支持js不行

The type java.util.Map$Entry cannot be resolved.it is indirectly
referenced from required.class files

解决办法:更换JDK,1.6

The content of element type "taglib" must match "(tlib-version,jsp-version,short-name,uri?,display-name?,small-icon?,large-
 icon?,description?,validator?,listener*,tag+)".
The content of element type "tag" must match "(tlib-version,jsp-version,short-name,uri?,display-name?,small-icon?,large-
 icon?,description?,validator?,listener*,tag+)".

原因:当前的额JDK版本不支持

selection does not contain an applect

eclipse提供多种运行方式,applet是运行applet application的时候运行的工具。一般情况下,我们创建的都是main application,
程序开始运行的地方时main,并没有applet,所以会出现selection does not contain anapplet的提示.如果工程是main, 提示选择运行方式的时候,选择 main application.

 

猜你喜欢

转载自blog.csdn.net/zsh773992554/article/details/82595737