eclipse导入代码报错解决总结

来源:互联网 发布:越狱软件一键安装软件 编辑:程序博客网 时间:2024/04/29 12:53

eclipse导入代码报错解决总结

1.JVM terminated .Exit code =13.

eclipse是32位,已有的jdk是64位,下载32位的jdk替换即可。

2.A java Runtime Environment (JRE) or Java

 

在eclipse的安装目录下,找到eclipse.ini,,修改Java的路径,如下图:

 

3.警告: The APR based Apache Tomcat Nativelibrary failed to load. The error reported was[D:\tomcat\apache-tomcat-6.0.53-windows-x64\apache-tomcat-6.0.53\bin\tcnative-1.dll:Can't load AMD 64-bit .dll 

下载tomcat-native-1.1.34-win32-bin.zip,copy bin\x64下的tcnative-1.dll,到你的JDK路径下的bin目录下。重新启动tomcat,就没有问题了。

注:其实这只是警告,对程序没有任何影响。

 

4.java.lang.IllegalStateException: Context namespaceelement 'annotation-config' and its parser class[org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]are only available on JDK 1.5 and higher

java.lang.IllegalStateException:Context namespaceelement'annotation-config'及其解析器类[org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]仅适用于JDK 1.5及更高版本

安装的jdk是1.8版本。

原因在与spring2.5 jdk还只发布到1.7的版本所以 1.8版本无法识别就当成低于1.5的版本报错了。。

解决方法: 
1.5-1.7版本的jdk 

 

5.The selectedsever is enables,but is not configured properly.


不要点OK!!!否则代码需要重新导入!!!

出现上面这个原因就是Tomcat的jdk环境配置错了或者没有配置。

windows-->perferences-->搜索tomcat会出现下图界面,点add,添加自己安装的JDK目录。

 

6.严重:StandardServer.await: create[8005]: 

java.net.BindException: Address already in use

端口被占。
在网上查找的一些相关说明及解决办法:
在使用ecplipse和jbuilder里的Tomcat时,有时候会遇到像下面这样的问题.严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind其实问题比较简单,

1,独立运行的Tomcat没有关闭.自安装的tomcat程序设置开机自动运行,或者在之前运行过.关掉独立运行的Tomcat即可.

2,安装了其他的软件占用了Tomcat的端口.用可以查看端口的工具查看一下,或者,直接改掉tomcat的默认端口.即可.

 

注:整理自网络。




阅读全文
0 0